Can Power Tools CTR1 create classes for stored procedures?

Is there any method for creating classes for stored procedures in my database when I first used the reverse engineer code provided by Entity Framework Power Tools CTP1?

+4
source share
2 answers

No, it will not be created for you, but with little effort you can integrate them. You can simply generate from your tables and then return the object inside the repository layer:

public Customer GetById(int id) { return_context.Database.SqlQuery("Proc_GetCustomer @customerID", new SqlParameter("@customerID", id)); } 
+1
source

No. If you want the code used to call your stored procedures generated by any tool to use the first EDMX and database approach.

+1
source

Source: https://habr.com/ru/post/1391049/


All Articles