Search Results for

    Show / Hide Table of Contents

    Class NpgsqlPostgresModelFinalizingConvention

    A convention that discovers certain common PostgreSQL extensions based on store types used in the model (e.g. hstore).

    Inheritance
    object
    NpgsqlPostgresModelFinalizingConvention
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class NpgsqlPostgresModelFinalizingConvention : IModelFinalizingConvention
    Remarks

    See Model building conventions.

    Constructors

    | Improve this Doc View Source

    NpgsqlPostgresModelFinalizingConvention(IRelationalTypeMappingSource)

    Creates a new instance of NpgsqlPostgresModelFinalizingConvention.

    Declaration
    public NpgsqlPostgresModelFinalizingConvention(IRelationalTypeMappingSource typeMappingSource)
    Parameters
    Type Name Description
    IRelationalTypeMappingSource typeMappingSource

    The type mapping source to use.

    Remarks

    See Model building conventions.

    Methods

    | Improve this Doc View Source

    DiscoverPostgresExtensions(IConventionProperty, RelationalTypeMapping, IConventionModelBuilder)

    Discovers certain common PostgreSQL extensions based on property store types (e.g. hstore).

    Declaration
    protected virtual void DiscoverPostgresExtensions(IConventionProperty property, RelationalTypeMapping typeMapping, IConventionModelBuilder modelBuilder)
    Parameters
    Type Name Description
    IConventionProperty property
    RelationalTypeMapping typeMapping
    IConventionModelBuilder modelBuilder
    Remarks

    See Model building conventions.

    | Improve this Doc View Source

    ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

    Declaration
    public virtual void ProcessModelFinalizing(IConventionModelBuilder modelBuilder, IConventionContext<IConventionModelBuilder> context)
    Parameters
    Type Name Description
    IConventionModelBuilder modelBuilder
    IConventionContext<><IConventionModelBuilder> context
    Remarks

    See Model building conventions.

    | Improve this Doc View Source

    ProcessRowVersionProperty(IConventionProperty, RelationalTypeMapping)

    Detects properties which are uint, OnAddOrUpdate and configured as concurrency tokens, and maps these to the PostgreSQL internal "xmin" column, which changes every time the row is modified.

    Declaration
    protected virtual void ProcessRowVersionProperty(IConventionProperty property, RelationalTypeMapping typeMapping)
    Parameters
    Type Name Description
    IConventionProperty property
    RelationalTypeMapping typeMapping
    Remarks

    See Model building conventions.

    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team