6
I am developing an ASP.NET MVC project with Entity Framework Code First.
I already checked the bank and managed the first Migrations, my question is:
has how to execute a insert
right after creating a table?
Example:
CreateTable(
"dbo.Permissao",
c => new
{
Id = c.Int(nullable: false, identity: true),
Descricao = c.String(nullable: false, maxLength: 350),
})
.PrimaryKey(t => t.Id);
//e aqui executar os insert
//exemplo: insert into Permissao (id, descricao) values(1, "Administrador");
//insert into Permissao (id, descricao) values(2, "Professor");
//insert into Permissao (id, descricao) values(3, "Aluno");