2
Well I’m doing a crud using mvc and Entity framework, only I don’t know how to pass parameters... here’s my code
public void Cadastrar(TimeModel timeObj)
{
strQuery = "INSERT INTO TimeFut (nome, estado) VALUES (aqui vai os parâmetros)";
db.Database.ExecuteSqlCommand(strQuery);
}
Someone could help me?
If you want to use "manual" commands, you do not need to use the Entity Framework. The good thing about using an ORM is that we don’t have to worry about "manual" CRUD. Take a look at some articles on CRUD + EF on the web and soon realize what I mean.
– João Martins