How can I use newsequentialid()
as default value in the PK column?
I have this annotation:
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
But this will generate random guid's I would like to have sequential guid's.
I can set by hand the database to newsequentialid()
as default value, but is there no better option? Or did the EF team forget about this option?