mirror of https://github.com/EasyAbp/EShop.git
committed by
GitHub
86 changed files with 4546 additions and 107 deletions
@ -0,0 +1,15 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace EasyAbp.EShop.Products.Products.Dtos |
|||
{ |
|||
[Serializable] |
|||
public class CreateProductSkuDto : UpdateProductSkuDto |
|||
{ |
|||
[Required] |
|||
[DisplayName("ProductSkuAttributeOptionIds")] |
|||
public List<Guid> AttributeOptionIds { get; set; } |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,40 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedExtraPropertiesToSomeEntities : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpEShopProductsProductAttributes", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpEShopProductsProductAttributeOptions", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpEShopOrdersOrderLines", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpEShopProductsProductAttributes"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpEShopProductsProductAttributeOptions"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpEShopOrdersOrderLines"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue