Search Results for

    Show / Hide Table of Contents

    Class NpgsqlStoreGenerationConvention

    A convention that ensures that properties aren't configured to have a default value, as computed column or using a NpgsqlValueGenerationStrategy at the same time.

    Inheritance
    object
    NpgsqlStoreGenerationConvention
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class NpgsqlStoreGenerationConvention : StoreGenerationConvention

    Constructors

    | Improve this Doc View Source

    NpgsqlStoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

    Creates a new instance of NpgsqlStoreGenerationConvention.

    Declaration
    public NpgsqlStoreGenerationConvention(ProviderConventionSetBuilderDependencies dependencies, RelationalConventionSetBuilderDependencies relationalDependencies)
    Parameters
    Type Name Description
    ProviderConventionSetBuilderDependencies dependencies

    Parameter object containing dependencies for this convention.

    RelationalConventionSetBuilderDependencies relationalDependencies

    Parameter object containing relational dependencies for this convention.

    Methods

    | Improve this Doc View Source

    ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, string, IConventionAnnotation?, IConventionAnnotation?, IConventionContext<IConventionAnnotation>)

    Called after an annotation is changed on a property.

    Declaration
    public override void ProcessPropertyAnnotationChanged(IConventionPropertyBuilder propertyBuilder, string name, IConventionAnnotation? annotation, IConventionAnnotation? oldAnnotation, IConventionContext<IConventionAnnotation> context)
    Parameters
    Type Name Description
    IConventionPropertyBuilder propertyBuilder

    The builder for the property.

    string name

    The annotation name.

    IConventionAnnotation? annotation

    The new annotation.

    IConventionAnnotation? oldAnnotation

    The old annotation.

    IConventionContext<><IConventionAnnotation> context

    Additional information associated with convention execution.

    | Improve this Doc View Source

    Validate(IConventionProperty, in StoreObjectIdentifier)

    Declaration
    protected override void Validate(IConventionProperty property, in StoreObjectIdentifier storeObject)
    Parameters
    Type Name Description
    IConventionProperty property
    StoreObjectIdentifier storeObject
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team