Class ProviderToReaderWrapper
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public class ProviderToReaderWrapper : DbDataReader, IDataReader, IDisposable, IDataRecord, IEnumerable
Properties
Depth
Gets a value indicating the depth of nesting for the current row.
Declaration
public override int Depth { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
The outermost table has a depth of zero
FieldCount
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override int FieldCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
HasRows
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override bool HasRows { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
IsClosed
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override bool IsClosed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
this[int]
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override object this[int i] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Property Value
| Type | Description |
|---|---|
| object |
Overrides
this[string]
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override object this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
Property Value
| Type | Description |
|---|---|
| object |
Overrides
RecordsAffected
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
Declaration
public override int RecordsAffected { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
The number of rows changed, inserted, or deleted; 0 if no rows were affected or the statement failed; and -1 for SELECT statements
Methods
Close()
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override void Close()
Overrides
CreateAsync(IArchiveProvider, string, CancellationToken)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public static Task<ProviderToReaderWrapper> CreateAsync(IArchiveProvider provider, string options, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IArchiveProvider | provider | |
| string | options | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<ProviderToReaderWrapper> |
Dispose(bool)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
GetBoolean(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override bool GetBoolean(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
GetByte(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override byte GetByte(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| byte |
Overrides
GetBytes(int, long, byte[], int, int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i | |
| long | fieldOffset | |
| byte[] | buffer | |
| int | bufferoffset | |
| int | length |
Returns
| Type | Description |
|---|---|
| long |
Overrides
GetChar(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override char GetChar(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| char |
Overrides
GetChars(int, long, char[], int, int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i | |
| long | fieldoffset | |
| char[] | buffer | |
| int | bufferoffset | |
| int | length |
Returns
| Type | Description |
|---|---|
| long |
Overrides
GetDataTypeName(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override string GetDataTypeName(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| string |
Overrides
GetDateTime(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override DateTime GetDateTime(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| DateTime |
Overrides
GetDbDataReader(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
protected override DbDataReader GetDbDataReader(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| DbDataReader |
Overrides
GetDecimal(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override decimal GetDecimal(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| decimal |
Overrides
GetDouble(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override double GetDouble(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| double |
Overrides
GetEnumerator()
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override IEnumerator GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator |
Overrides
GetFieldType(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override Type GetFieldType(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| Type |
Overrides
GetFloat(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override float GetFloat(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| float |
Overrides
GetGuid(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override Guid GetGuid(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| Guid |
Overrides
GetInt16(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override short GetInt16(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| short |
Overrides
GetInt32(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override int GetInt32(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| int |
Overrides
GetInt64(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override long GetInt64(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| long |
Overrides
GetName(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override string GetName(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| string |
Overrides
GetOrdinal(string)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override int GetOrdinal(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
Returns
| Type | Description |
|---|---|
| int |
Overrides
GetSchemaTable()
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override DataTable GetSchemaTable()
Returns
| Type | Description |
|---|---|
| DataTable |
Overrides
GetString(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override string GetString(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| string |
Overrides
GetValue(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override object GetValue(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| object |
Overrides
GetValues(object[])
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override int GetValues(object[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| object[] | values |
Returns
| Type | Description |
|---|---|
| int |
Overrides
IsDBNull(int)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override bool IsDBNull(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
NextResult()
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override bool NextResult()
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Read()
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override bool Read()
Returns
| Type | Description |
|---|---|
| bool |
Overrides
ReadAsync(CancellationToken)
Helper class to serve an IArchiveProvider as an DbDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public override Task<bool> ReadAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<bool> |