Well, I'm doing a crud using mvc and the entity framework, but I do not 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);
}
Could someone help me?