mirror of https://github.com/EasyAbp/EShop.git
18 changed files with 3615 additions and 1 deletions
@ -0,0 +1,13 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp; |
||||
|
|
||||
|
namespace EasyAbp.EShop.Orders.Orders |
||||
|
{ |
||||
|
public class OrderLineInvalidQuantityException : BusinessException |
||||
|
{ |
||||
|
public OrderLineInvalidQuantityException(Guid productId, Guid? productSkuId, int quantity) : base( |
||||
|
message: $"Invalid quantity {quantity} for product {productId} (SKU: {productSkuId}).") |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
} |
||||
File diff suppressed because it is too large
@ -0,0 +1,23 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace EShopSample.Migrations |
||||
|
{ |
||||
|
public partial class AddedOrderMaxQuantityProperty : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "OrderMaxQuantity", |
||||
|
table: "EShopProductsProductSkus", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "OrderMaxQuantity", |
||||
|
table: "EShopProductsProductSkus"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue