Unique IDs over database globally using Entity Framework -
I have to have a unique object ID on the whole database Does the EF have any underlying feature? Or maybe there are some practices / patterns?
Thanks in advance.
1) Create a table to store the last id (int, bintint) (identifier domain) < / P>
2) Add stored procedure to retrieve the next ID (int, bilint).
3) You
4) Use this ID in your ID as the primary ID
-
> If you If the GUID ... uses EF (4), then this feature has the feature to do. But with CLUSTERED INDEX as a primary key, there is a bad solution for many entry of the GUID course.
Comments
Post a Comment