Skip to content

How to use sequential guid? #2414

@niltor

Description

@niltor

Question

I want to know how to configure a sequence Guid in Npgsql.

Description

Nuget package:Npgsql.EntityFrameworkCore.PostgreSQL, Version="6.0.4"

In Entityframework Core 6, as Microsoft docs mention:
Explicitly configuring value generation,
In this article's warning section, there are :

For example, on SQL Server, when a GUID property is configured as a value generated on add, the provider automatically performs value generation client-side, using an algorithm to generate optimal sequential GUID values.

So, How to configure a sequence Guid in Npgsql.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions