Search Results for

    Show / Hide Table of Contents

    Class DbDataSource

    Inheritance
    object
    DbDataSource
    NpgsqlDataSource
    Implements
    IAsyncDisposable
    Namespace: System.Data.Common
    Assembly: Npgsql.dll
    Syntax
    public abstract class DbDataSource : IDisposable, IAsyncDisposable

    Properties

    | Improve this Doc View Source

    ConnectionString

    Declaration
    public abstract string ConnectionString { get; }
    Property Value
    Type Description
    string

    Methods

    | Improve this Doc View Source

    CreateBatch()

    Declaration
    public DbBatch CreateBatch()
    Returns
    Type Description
    DbBatch
    | Improve this Doc View Source

    CreateCommand(string?)

    Declaration
    public DbCommand CreateCommand(string? commandText = null)
    Parameters
    Type Name Description
    string? commandText
    Returns
    Type Description
    DbCommand
    | Improve this Doc View Source

    CreateConnection()

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

    CreateDbBatch()

    Declaration
    protected virtual DbBatch CreateDbBatch()
    Returns
    Type Description
    DbBatch
    | Improve this Doc View Source

    CreateDbCommand(string?)

    Declaration
    protected virtual DbCommand CreateDbCommand(string? commandText = null)
    Parameters
    Type Name Description
    string? commandText
    Returns
    Type Description
    DbCommand
    | Improve this Doc View Source

    CreateDbConnection()

    Declaration
    protected abstract DbConnection CreateDbConnection()
    Returns
    Type Description
    DbConnection
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(bool)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    | Improve this Doc View Source

    DisposeAsync()

    Declaration
    public ValueTask DisposeAsync()
    Returns
    Type Description
    ValueTask
    | Improve this Doc View Source

    DisposeAsyncCore()

    Declaration
    protected virtual ValueTask DisposeAsyncCore()
    Returns
    Type Description
    ValueTask
    | Improve this Doc View Source

    OpenConnection()

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

    OpenConnectionAsync(CancellationToken)

    Declaration
    public ValueTask<DbConnection> OpenConnectionAsync(CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask<><DbConnection>
    | Improve this Doc View Source

    OpenDbConnection()

    Declaration
    protected virtual DbConnection OpenDbConnection()
    Returns
    Type Description
    DbConnection
    | Improve this Doc View Source

    OpenDbConnectionAsync(CancellationToken)

    Declaration
    protected virtual ValueTask<DbConnection> OpenDbConnectionAsync(CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask<><DbConnection>

    Implements

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