Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public partial class CriacaoBanco : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.Clientes",
c => new
{
ID = c.Int(nullable: false, identity: true),
Nome = c.String(maxLength: 100),
Cidade = c.String(),
UF = c.String(),
})
.PrimaryKey(t => t.ID)
.Index(t => t.Nome, name: "MeuIndice");
}
public override void Down()
{
DropIndex("dbo.Clientes", "MeuIndice");
DropTable("dbo.Clientes");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.