namespace ShwasherSys.Migrations { using System; using System.Collections.Generic; using System.Data.Entity.Infrastructure.Annotations; using System.Data.Entity.Migrations; public partial class addOrderBook : DbMigration { public override void Up() { CreateTable( "dbo.OrderBookStore", c => new { Id = c.Long(nullable: false, identity: true), OrderItemId = c.Int(nullable: false), ProductNo = c.String(maxLength: 30), QuantityPerPack = c.Decimal(precision: 18, scale: 3), PackageCount = c.Decimal(precision: 18, scale: 3), ProductBatchNum = c.String(maxLength: 32), StoreLocationNo = c.String(maxLength: 32), CurrentProductStoreHouseNo = c.String(), Status = c.Int(), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_OrderBookStore_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id); } public override void Down() { DropTable("dbo.OrderBookStore", removedAnnotations: new Dictionary { { "DynamicFilter_OrderBookStore_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); } } }