subsonic3 - Subsonic 3 Guid as PK always gives me 00000000-0000-0000-0000-000000000000 -


Using subsonic 3, add simple repository always gives me 00000000-0000-0000-0000-000000000000 for my PK Which obviously causes an error in my DB, I see that the definition of my PK made by Subsonic is using new (), but still this is a problem.

Anyone else having this problem?

FYI I am using a local Sql Server 2005 DB in an AppData directory.

When you use Guid's subSonic, you expect them to be set. Your best bet is Guid.NewGuid () in the manufacturer Remember that SimpleRepo is "POCO-first" thinking DB is just a place for data.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -