Search Results for

    Show / Hide Table of Contents

    Class NpgsqlBatchCommand

    Inheritance
    Object
    DbBatchCommand
    NpgsqlBatchCommand
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Npgsql
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlBatchCommand : DbBatchCommand

    Constructors

    NpgsqlBatchCommand()

    Initializes a new NpgsqlBatchCommand.

    Declaration
    public NpgsqlBatchCommand()

    NpgsqlBatchCommand(String)

    Initializes a new NpgsqlBatchCommand.

    Declaration
    public NpgsqlBatchCommand(string commandText)
    Parameters
    Type Name Description
    String commandText

    The text of the NpgsqlBatchCommand.

    Properties

    CommandText

    Declaration
    public override string CommandText { get; set; }
    Property Value
    Type Description
    String
    Overrides
    DbBatchCommand.CommandText

    CommandType

    Declaration
    public override CommandType CommandType { get; set; }
    Property Value
    Type Description
    CommandType
    Overrides
    DbBatchCommand.CommandType

    DbParameterCollection

    Declaration
    protected override DbParameterCollection DbParameterCollection { get; }
    Property Value
    Type Description
    DbParameterCollection
    Overrides
    DbBatchCommand.DbParameterCollection

    OID

    For an INSERT, the object ID of the inserted row if RecordsAffected is 1 and the target table has OIDs; otherwise 0.

    Declaration
    public uint OID { get; }
    Property Value
    Type Description
    UInt32

    Parameters

    Declaration
    public NpgsqlParameterCollection Parameters { get; }
    Property Value
    Type Description
    NpgsqlParameterCollection

    RecordsAffected

    Declaration
    public override int RecordsAffected { get; }
    Property Value
    Type Description
    Int32
    Overrides
    DbBatchCommand.RecordsAffected

    Rows

    The number of rows affected or retrieved.

    Declaration
    public ulong Rows { get; }
    Property Value
    Type Description
    UInt64
    Remarks

    See the command tag in the CommandComplete message for the meaning of this value for each StatementType, https://www.postgresql.org/docs/current/static/protocol-message-formats.html

    StatementType

    Specifies the type of query, e.g. SELECT.

    Declaration
    public StatementType StatementType { get; }
    Property Value
    Type Description
    StatementType

    Methods

    ToString()

    Returns the CommandText.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team