none
Guid as PrimaryKey on Entity FrameWork

    Question

  • 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!

    What can I do to solve my problem?

    Thanks.

    Gabriel Oliveira.

    • Moved by VMazurModerator Thursday, April 29, 2010 10:37 AM (From:ADO.NET Managed Providers)
    Tuesday, April 20, 2010 7:15 PM

All replies