当前位置: 首页>>代码示例>>C#>>正文


C# MigrationBuilder.DropSequence方法代码示例

本文整理汇总了C#中MigrationBuilder.DropSequence方法的典型用法代码示例。如果您正苦于以下问题:C# MigrationBuilder.DropSequence方法的具体用法?C# MigrationBuilder.DropSequence怎么用?C# MigrationBuilder.DropSequence使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MigrationBuilder的用法示例。


在下文中一共展示了MigrationBuilder.DropSequence方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Down

 public override void Down(MigrationBuilder migration)
 {
     migration.DropSequence("DefaultSequence");
     migration.DropTable("AuthModel");
     migration.DropTable("DynamicPassword");
     migration.DropTable("LoginModel");
 }
开发者ID:jim-king-2000,项目名称:AuthCloud,代码行数:7,代码来源:20150908103402_Initial.cs

示例2: Down

 protected override void Down(MigrationBuilder migrationBuilder)
 {
     migrationBuilder.DropSequence(name: "LpaUserSeq", schema: "dbo");
     migrationBuilder.DropTable("UserClaims");
     migrationBuilder.DropTable("Claims");
     migrationBuilder.DropTable("Users");
 }
开发者ID:nteague22,项目名称:LPA-Site,代码行数:7,代码来源:20151005044610_InitializeAuth.cs

示例3: Down

 public override void Down(MigrationBuilder migration)
 {
     migration.DropSequence("DefaultSequence");
     migration.DropTable("Line");
     migration.DropTable("Operation");
     migration.DropTable("Product");
     migration.DropTable("ProductLine");
     migration.DropTable("Status");
 }
开发者ID:anttieskola,项目名称:tsdemo,代码行数:9,代码来源:20150729174302_first.cs

示例4: Down

 public override void Down(MigrationBuilder migration)
 {
     migration.DropSequence("DefaultSequence");
     migration.DropTable("Administrator");
     migration.DropTable("Category");
     migration.DropTable("Foo");
     migration.DropTable("MenuItem");
     migration.DropTable("Order");
     migration.DropTable("OrderItem");
 }
开发者ID:hanjia2014,项目名称:HotmenuApp,代码行数:10,代码来源:20150721214833_InitialDatabase.cs

示例5: Down

 public override void Down(MigrationBuilder migration)
 {
     migration.DropSequence("DefaultSequence");
     migration.DropTable("APIDocumentation");
     migration.DropTable("Attachment");
     migration.DropTable("Comment");
     migration.DropTable("Project");
     migration.DropTable("Sprint");
     migration.DropTable("Task");
     migration.DropTable("User");
     migration.DropTable("UserSession");
 }
开发者ID:miffy081409,项目名称:scrumtemplate,代码行数:12,代码来源:20150919151507_Initial.cs

示例6: DropSequence_adds_operation

        public void DropSequence_adds_operation()
        {
            var builder = new MigrationBuilder();

            builder.DropSequence("dbo.MySequence");

            Assert.Equal(1, builder.Operations.Count);
            Assert.IsType<DropSequenceOperation>(builder.Operations[0]);

            var operation = (DropSequenceOperation)builder.Operations[0];

            Assert.Equal("dbo.MySequence", operation.SequenceName);
        }
开发者ID:Nyaoso,项目名称:EntityFramework,代码行数:13,代码来源:MigrationBuilderTest.cs

示例7: Down

 public override void Down(MigrationBuilder migration)
 {
     migration.DropSequence("DefaultSequence");
     migration.DropTable("Noticia");
 }
开发者ID:walmon,项目名称:MVC6UNAGUIAINTRODUCTORIA,代码行数:5,代码来源:20150721043808_MyFirstMigration.cs

示例8: Down

 public override void Down(MigrationBuilder migration)
 {
     migration.DropSequence("DefaultSequence");
     migration.DropTable("Author");
     migration.DropTable("Book");
 }
开发者ID:nslindtner,项目名称:Docs,代码行数:6,代码来源:20150624041210_Initial.cs

示例9: Down

 protected override void Down(MigrationBuilder migrationBuilder)
 {
     migrationBuilder.DropSequence(name: "UserSeq", schema: "dbo");
     migrationBuilder.DropTable(name: "relClaimsLookup", schema: "dbo");
     migrationBuilder.DropTable(name: "UsersLoggedIn", schema: "dbo");
     migrationBuilder.DropTable(name: "SecurityClaims", schema: "dbo");
     migrationBuilder.DropTable(name: "DashboardUsers", schema: "dbo");
     migrationBuilder.DropTable(name: "SecurityRoles", schema: "dbo");
 }
开发者ID:nteague22,项目名称:BmDashboard.AspNet5.Ef7b7,代码行数:9,代码来源:20150910195921_authDone.cs


注:本文中的MigrationBuilder.DropSequence方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。