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
Constructors
| Improve this Doc View SourceNpgsqlPostgresModelFinalizingConvention(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
Methods
| Improve this Doc View SourceDiscoverPostgresExtensions(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
| Improve this Doc View SourceProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)
Declaration
public virtual void ProcessModelFinalizing(IConventionModelBuilder modelBuilder, IConventionContext<IConventionModelBuilder> context)
Parameters
Type | Name | Description |
---|---|---|
IConventionModelBuilder | modelBuilder | |
IConventionContext<><IConventionModelBuilder> | context |
Remarks
| Improve this Doc View SourceProcessRowVersionProperty(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 |