I am creating ASP.NET Dynamic Data Site (using entities) to manage master tables of my application. All my master table has a Primary Key of "UniqueIdentifier" in SQL Server. Where should I write "Guid.NewGuid()" in order to give default value (as new Guid) and to show them in textboxes bound with these fields?
Asked
Active
Viewed 139 times
0
-
See if my answer here helps you - http://stackoverflow.com/a/19438515/1564317 – Joe Healy Oct 17 '13 at 22:39
1 Answers
0
ok, I found the solution myself. We need to open EDMX file, and ID property in each entity needs to be have StoreGeneratedPattern="Computed"

Nirman
- 6,715
- 19
- 72
- 139