Entity Framework uses newsequentialid() for Guid Key

c# ef-code-first entity-framework entity-framework-6

Question

Using the code below,

public class UserProfile
{
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public Guid Id { get; set; }

    // more properties here
}

Thought EF was using newguid(), but when I checked the database, I saw that newsequentialid was the default value ()

Is this EF's standard behaviour? Or is it a result of my usage of SQL Server 2017?

1
2
11/25/2017 7:39:48 AM

Accepted Answer

ZZZ_tmp
1
11/25/2017 11:27:31 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow