BookStore_NETMVC.Migrations.Books.Initialize.Up C# (CSharp) Метод

Up() публичный Метод

public Up ( ) : void
Результат void
        public override void Up()
        {
            CreateTable(
                "dbo.Books",
                c => new
                    {
                        strBookID = c.String(nullable: false, maxLength: 128),
                        strBookName = c.String(nullable: false, maxLength: 200),
                        strBookContent = c.String(),
                        strCatetoryID = c.String(),
                    })
                .PrimaryKey(t => t.strBookID);
            
            CreateTable(
                "dbo.Categories",
                c => new
                    {
                        strCategoryID = c.String(nullable: false, maxLength: 128),
                        strCategoryName = c.String(),
                    })
                .PrimaryKey(t => t.strCategoryID);
            
        }
        
Initialize