Can I map incomplete sproc columns to an entity? -


I am using the latest beta and unit framework of Visual Studio 2010. This is mostly true, but it is my position:

  • I have a table with column id and name .
  • I have an auto-generated unit with properties like id and names .
  • Finally, I have a stored procedure that only selects Id to t.

Trying to map my entity into a EntityCommandExecutionException stored procedures results:

A [unit] The member of the 'name' does not have the same column in the data reader.

This makes sense, but there is no way to populate my unit partially from the stored process call and then it will be fully executed with the second query. Bring it

Nine months ago, this question appeared to involve much more labor labor. In my case, we have hundreds of stored procedures, and none of them return full lines, the unit framework has long since been so, so I hope that something will change.

Thanks in advance for any help!

In a way, a complex type may be used to map the results of the process, and then To add a method for this type the code can customize the generation which will execute the entire object. / P>

One possible way with this idea is that I'm not sure that it is possible to optimize the code generating for complex types. You can of course customize the code generation for the unit type. It seems that you should be able to adapt complex types, as well, I've never tried to do this.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -