asp.net mvc - Viemodel with stored Procedure -
i following tutorial of scott gu here retrieve data using stored procedure. setting return type of stored procedure dropping sproc on class. question can set viewmodel
return type of stored procedure, view typed viewmodel
you can associate return type of stored procedure custom type: in .edmx design click on imported stored procedure , set function import name somecustomname , select return type -> entities -> someentity. having stored procedure return entity models map models view model returned view. considered practice have view models tailored views instead of passing directly sql transport objects.
Comments
Post a Comment