Search Results for

    Show / Hide Table of Contents

    Class NpgsqlConventionSetBuilder

    A builder for building conventions for Npgsql.

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

    The service lifetime is and multiple registrations are allowed. This means that each instance will use its own set of instances of this service. The implementations may depend on other services registered with any lifetime. The implementations do not need to be thread-safe.

    See Model building conventions, and

    Constructors

    | Improve this Doc View Source

    NpgsqlConventionSetBuilder(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies, IRelationalTypeMappingSource, INpgsqlSingletonOptions)

    Creates a new NpgsqlConventionSetBuilder instance.

    Declaration
    public NpgsqlConventionSetBuilder(ProviderConventionSetBuilderDependencies dependencies, RelationalConventionSetBuilderDependencies relationalDependencies, IRelationalTypeMappingSource typeMappingSource, INpgsqlSingletonOptions npgsqlSingletonOptions)
    Parameters
    Type Name Description
    ProviderConventionSetBuilderDependencies dependencies

    The core dependencies for this service.

    RelationalConventionSetBuilderDependencies relationalDependencies

    The relational dependencies for this service.

    IRelationalTypeMappingSource typeMappingSource

    The type mapping source to use.

    INpgsqlSingletonOptions npgsqlSingletonOptions

    The singleton options to use.

    Remarks

    The service lifetime is and multiple registrations are allowed. This means that each instance will use its own set of instances of this service. The implementations may depend on other services registered with any lifetime. The implementations do not need to be thread-safe.

    See Model building conventions, and

    Methods

    | Improve this Doc View Source

    Build()

    Call this method to build a for Npgsql when using the outside of .

    Note that it is unusual to use this method. Consider using in the normal way instead.

    Declaration
    public static ConventionSet Build()
    Returns
    Type Description
    ConventionSet

    The convention set.

    Remarks

    The service lifetime is and multiple registrations are allowed. This means that each instance will use its own set of instances of this service. The implementations may depend on other services registered with any lifetime. The implementations do not need to be thread-safe.

    See Model building conventions, and

    | Improve this Doc View Source

    CreateConventionSet()

    Declaration
    public override ConventionSet CreateConventionSet()
    Returns
    Type Description
    ConventionSet
    Remarks

    The service lifetime is and multiple registrations are allowed. This means that each instance will use its own set of instances of this service. The implementations may depend on other services registered with any lifetime. The implementations do not need to be thread-safe.

    See Model building conventions, and

    | Improve this Doc View Source

    CreateModelBuilder()

    Call this method to build a for Npgsql outside of .

    Note that it is unusual to use this method. Consider using in the normal way instead.

    Declaration
    public static ModelBuilder CreateModelBuilder()
    Returns
    Type Description
    ModelBuilder

    The convention set.

    Remarks

    The service lifetime is and multiple registrations are allowed. This means that each instance will use its own set of instances of this service. The implementations may depend on other services registered with any lifetime. The implementations do not need to be thread-safe.

    See Model building conventions, and

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