Are there any method to generate classes for stored Procedures in my DB when I used Reverse Engineer code first that provided by Entity Framework Power Tools CTP1?
4
votes
2 Answers
1
votes
1
votes
No it wont be generated for you but with a mild bit of effort you can integrate them. You can simply generate from your tables, and then return an entity inside your repository layer:
public Customer GetById(int id)
{
return_context.Database.SqlQuery("Proc_GetCustomer @customerID", new SqlParameter("@customerID", id));
}