mirror of https://github.com/EasyAbp/EShop.git
25 changed files with 2991 additions and 9 deletions
@ -0,0 +1,13 @@ |
|||
using System; |
|||
using Volo.Abp; |
|||
|
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
public class ProductCodeDuplicatedException : BusinessException |
|||
{ |
|||
public ProductCodeDuplicatedException(string code) : base( |
|||
message: $"Product code {code} is duplicate.") |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,22 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EasyMall.Migrations |
|||
{ |
|||
public partial class AddedCodePropertyToProduct : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Code", |
|||
table: "ProductsProducts", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Code", |
|||
table: "ProductsProducts"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue