Last post Jan 07, 2011 01:36 PM by mbowles
Jan 06, 2011 09:43 PM|mbowles|LINK
This post: http://forums.asp.net/p/1326078/2658119.aspx#2658119
marcind mentinos a method to edit the view to add primary key, where is this done. Dont wnat to edit the designer.cs as this will get overriden everytime you generate a new dbml.
Jan 06, 2011 10:24 PM|snuggles|LINK
i also looked at this. in my opinion, the best way to go is to create a stored proc. steve n has mentioned/recommended this as well.
do a search on this forum for strored proc and you should find what you need.
Jan 07, 2011 11:30 AM|sjnaughton|LINK
Hi Mbowles, have a look at Rick Anderson's post here
How to create an updateable view with ADO Entity Framework and with LINQ to SQL
Dynamic Data 4
Jan 07, 2011 11:51 AM|mbowles|LINK
Unfortunately, I can not use a stored proc..(dno't ask :) )
Steve, that link errors out, I will try it again after a while, thanks!
Jan 07, 2011 11:54 AM|sjnaughton|LINK
Then you are stuck [:(] sorry
Jan 07, 2011 01:36 PM|mbowles|LINK
May write a script that does some file editing after a dbml change to add IsPrimaryKey to appropriate fields. lol