Search Results for

    Show / Hide Table of Contents

    Class DbBatch

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

    Properties

    | Improve this Doc View Source

    BatchCommands

    Declaration
    public DbBatchCommandCollection BatchCommands { get; }
    Property Value
    Type Description
    DbBatchCommandCollection
    | Improve this Doc View Source

    Connection

    Declaration
    public DbConnection? Connection { get; set; }
    Property Value
    Type Description
    DbConnection?
    | Improve this Doc View Source

    DbBatchCommands

    Declaration
    protected abstract DbBatchCommandCollection DbBatchCommands { get; }
    Property Value
    Type Description
    DbBatchCommandCollection
    | Improve this Doc View Source

    DbConnection

    Declaration
    protected abstract DbConnection? DbConnection { get; set; }
    Property Value
    Type Description
    DbConnection?
    | Improve this Doc View Source

    DbTransaction

    Declaration
    protected abstract DbTransaction? DbTransaction { get; set; }
    Property Value
    Type Description
    DbTransaction?
    | Improve this Doc View Source

    Timeout

    Declaration
    public abstract int Timeout { get; set; }
    Property Value
    Type Description
    int
    | Improve this Doc View Source

    Transaction

    Declaration
    public DbTransaction? Transaction { get; set; }
    Property Value
    Type Description
    DbTransaction?

    Methods

    | Improve this Doc View Source

    Cancel()

    Declaration
    public abstract void Cancel()
    | Improve this Doc View Source

    CreateBatchCommand()

    Declaration
    public DbBatchCommand CreateBatchCommand()
    Returns
    Type Description
    DbBatchCommand
    | Improve this Doc View Source

    CreateDbBatchCommand()

    Declaration
    protected abstract DbBatchCommand CreateDbBatchCommand()
    Returns
    Type Description
    DbBatchCommand
    | Improve this Doc View Source

    Dispose()

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

    DisposeAsync()

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

    ExecuteDbDataReader(CommandBehavior)

    Declaration
    protected abstract DbDataReader ExecuteDbDataReader(CommandBehavior behavior)
    Parameters
    Type Name Description
    CommandBehavior behavior
    Returns
    Type Description
    DbDataReader
    | Improve this Doc View Source

    ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken)

    Declaration
    protected abstract Task<DbDataReader> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CommandBehavior behavior
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<><DbDataReader>
    | Improve this Doc View Source

    ExecuteNonQuery()

    Declaration
    public abstract int ExecuteNonQuery()
    Returns
    Type Description
    int
    | Improve this Doc View Source

    ExecuteNonQueryAsync(CancellationToken)

    Declaration
    public abstract Task<int> ExecuteNonQueryAsync(CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<><int>
    | Improve this Doc View Source

    ExecuteReader(CommandBehavior)

    Declaration
    public DbDataReader ExecuteReader(CommandBehavior behavior = null)
    Parameters
    Type Name Description
    CommandBehavior behavior
    Returns
    Type Description
    DbDataReader
    | Improve this Doc View Source

    ExecuteReaderAsync(CancellationToken)

    Declaration
    public Task<DbDataReader> ExecuteReaderAsync(CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<><DbDataReader>
    | Improve this Doc View Source

    ExecuteReaderAsync(CommandBehavior, CancellationToken)

    Declaration
    public Task<DbDataReader> ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    CommandBehavior behavior
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<><DbDataReader>
    | Improve this Doc View Source

    ExecuteScalar()

    Declaration
    public abstract object? ExecuteScalar()
    Returns
    Type Description
    object?
    | Improve this Doc View Source

    ExecuteScalarAsync(CancellationToken)

    Declaration
    public abstract Task<object?> ExecuteScalarAsync(CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<><object?>
    | Improve this Doc View Source

    Prepare()

    Declaration
    public abstract void Prepare()
    | Improve this Doc View Source

    PrepareAsync(CancellationToken)

    Declaration
    public abstract Task PrepareAsync(CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task

    Implements

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