Search Results for

    Show / Hide Table of Contents

    Class NpgsqlFactory

    A factory to create instances of various Npgsql objects.

    Inheritance
    object
    NpgsqlFactory
    Implements
    IServiceProvider
    Namespace: Npgsql
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlFactory : DbProviderFactory, IServiceProvider

    Fields

    | Improve this Doc View Source

    Instance

    Gets an instance of the NpgsqlFactory. This can be used to retrieve strongly typed data objects.

    Declaration
    public static readonly NpgsqlFactory Instance
    Field Value
    Type Description
    NpgsqlFactory

    Properties

    | Improve this Doc View Source

    CanCreateCommandBuilder

    Specifies whether the specific supports the class.

    Declaration
    public override bool CanCreateCommandBuilder { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    CanCreateDataAdapter

    Specifies whether the specific supports the class.

    Declaration
    public override bool CanCreateDataAdapter { get; }
    Property Value
    Type Description
    bool

    Methods

    | Improve this Doc View Source

    CreateCommand()

    Returns a strongly typed instance.

    Declaration
    public override DbCommand CreateCommand()
    Returns
    Type Description
    DbCommand
    | Improve this Doc View Source

    CreateCommandBuilder()

    Returns a strongly typed instance.

    Declaration
    public override DbCommandBuilder CreateCommandBuilder()
    Returns
    Type Description
    DbCommandBuilder
    | Improve this Doc View Source

    CreateConnection()

    Returns a strongly typed instance.

    Declaration
    public override DbConnection CreateConnection()
    Returns
    Type Description
    DbConnection
    | Improve this Doc View Source

    CreateConnectionStringBuilder()

    Returns a strongly typed instance.

    Declaration
    public override DbConnectionStringBuilder CreateConnectionStringBuilder()
    Returns
    Type Description
    DbConnectionStringBuilder
    | Improve this Doc View Source

    CreateDataAdapter()

    Returns a strongly typed instance.

    Declaration
    public override DbDataAdapter CreateDataAdapter()
    Returns
    Type Description
    DbDataAdapter
    | Improve this Doc View Source

    CreateParameter()

    Returns a strongly typed instance.

    Declaration
    public override DbParameter CreateParameter()
    Returns
    Type Description
    DbParameter
    | Improve this Doc View Source

    GetService(Type)

    Gets the service object of the specified type.

    Declaration
    public object? GetService(Type serviceType)
    Parameters
    Type Name Description
    Type serviceType

    An object that specifies the type of service object to get.

    Returns
    Type Description
    object?

    A service object of type serviceType, or null if there is no service object of type serviceType.

    Implements

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