Table of Contents

Property this

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

this[int]

Gets the value of a column by its position.

public object? this[int ordinal] { get; }

Parameters

ordinal int

The zero-based position of the column.

Property Value

object

The value; null for a database NULL.

Exceptions

ArgumentOutOfRangeException

ordinal is negative or not less than FieldCount.

this[string]

Gets the value of the first column with a name.

public object? this[string key] { get; }

Parameters

key string

The name, found exactly, else ignoring case.

Property Value

object

The value; null for a database NULL.

Exceptions

ArgumentNullException

key is null.

KeyNotFoundException

No column has the name.