Roman Pelepei gives smart answers on questions about C# .Net, ASP .Net, WPF and Silverlight programming with examples and source code.
вторник, 11 января 2011 г.
Guid as PrimaryKey on Entity FrameWork
Hi, I am doing a little test with EF4, and I've tried to set up one entity which the primary key is one Guid,
Till this point, every thing is ok!, but whene try to insert into database, the visual studio throw one error saying that the object can't be saved because the Id (that´s my primary key) is null, otherwise the EF don't genarate one Guid for Id!