本文整理汇总了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");
}
示例2: Down
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropSequence(name: "LpaUserSeq", schema: "dbo");
migrationBuilder.DropTable("UserClaims");
migrationBuilder.DropTable("Claims");
migrationBuilder.DropTable("Users");
}
示例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");
}
示例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");
}
示例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");
}
示例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);
}
示例7: Down
public override void Down(MigrationBuilder migration)
{
migration.DropSequence("DefaultSequence");
migration.DropTable("Noticia");
}
示例8: Down
public override void Down(MigrationBuilder migration)
{
migration.DropSequence("DefaultSequence");
migration.DropTable("Author");
migration.DropTable("Book");
}
示例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");
}