mirror of https://github.com/EasyAbp/EShop.git
19 changed files with 2550 additions and 12 deletions
@ -0,0 +1,9 @@ |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace EasyAbp.EShop.Products.Categories.Dtos |
|||
{ |
|||
public class GetCategoryListDto : PagedAndSortedResultRequestDto |
|||
{ |
|||
public bool ShowHidden { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using System; |
|||
using Volo.Abp; |
|||
|
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
public class StaticProductCannotBeModifiedException : BusinessException |
|||
{ |
|||
public StaticProductCannotBeModifiedException(Guid productId) : base( |
|||
message: $"Cannot modify the static product: {productId}") |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,43 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EasyMall.Migrations |
|||
{ |
|||
public partial class AddedIsHiddenAndIsStatic : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsHidden", |
|||
table: "ProductsProducts", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsStatic", |
|||
table: "ProductsProducts", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsHidden", |
|||
table: "ProductsCategories", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "IsHidden", |
|||
table: "ProductsProducts"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsStatic", |
|||
table: "ProductsProducts"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsHidden", |
|||
table: "ProductsCategories"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue