Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public partial class CriacaoBanco : DbMigration
public override void Up()
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");
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.