Automatic pointer

Setting up my poco objects with a Guid, and they seem to be at least stored as expected ... but I don't see it creating a new Guid for Id if done manually. Is there a trick to set it up so that db.CreateDatabase () will set the id field to be an id specification (mssql server) or just auto populate it with the Guid.NewGuid () command?

+3


source to share


1 answer


You are responsible for creating your own guides



If your ids were integers, you can work with the [AutoIncrement] attribute and have more options, but you're on your own for the guides.

+3


source







All Articles