I'm developing an ASP.NET MVC project with Entity Framework Code First.
I've mapped the bank and managed the first Migrations, my question is:
can I run a insert
shortly after a table is created?
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");