Class ProviderToReaderWrapper
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public class ProviderToReaderWrapper : Object, IDataReader, IDataRecord, IDisposable
Constructors
ProviderToReaderWrapper(IArchiveProvider, String)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public ProviderToReaderWrapper(IArchiveProvider provider, string options)
Parameters
Type | Name | Description |
---|---|---|
IArchiveProvider | provider | |
String | options |
Properties
Depth
Gets a value indicating the depth of nesting for the current row.
Declaration
public int Depth { get; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
The outermost table has a depth of zero
FieldCount
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public int FieldCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
IsClosed
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public bool IsClosed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Item[Int32]
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public object this[int i] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Property Value
Type | Description |
---|---|
Object |
Item[String]
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public object this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | name |
Property Value
Type | Description |
---|---|
Object |
RecordsAffected
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
Declaration
public int RecordsAffected { get; }
Property Value
Type | Description |
---|---|
Int32 |
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 IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public void Close()
Dispose()
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public void Dispose()
GetBoolean(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public bool GetBoolean(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Boolean |
GetByte(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public byte GetByte(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Byte |
GetBytes(Int32, Int64, Byte[], Int32, Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | |
Int64 | fieldOffset | |
Byte[] | buffer | |
Int32 | bufferoffset | |
Int32 | length |
Returns
Type | Description |
---|---|
Int64 |
GetChar(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public char GetChar(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Char |
GetChars(Int32, Int64, Char[], Int32, Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | |
Int64 | fieldoffset | |
Char[] | buffer | |
Int32 | bufferoffset | |
Int32 | length |
Returns
Type | Description |
---|---|
Int64 |
GetData(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public IDataReader GetData(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
IDataReader |
GetDataTypeName(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public string GetDataTypeName(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
String |
GetDateTime(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public DateTime GetDateTime(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
DateTime |
GetDecimal(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public Decimal GetDecimal(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Decimal |
GetDouble(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public double GetDouble(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Double |
GetFieldType(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public Type GetFieldType(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Type |
GetFloat(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public float GetFloat(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Single |
GetGuid(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public Guid GetGuid(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Guid |
GetInt16(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public short GetInt16(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Int16 |
GetInt32(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public int GetInt32(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Int32 |
GetInt64(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public long GetInt64(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Int64 |
GetName(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public string GetName(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
String |
GetOrdinal(String)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public int GetOrdinal(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name |
Returns
Type | Description |
---|---|
Int32 |
GetSchemaTable()
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public DataTable GetSchemaTable()
Returns
Type | Description |
---|---|
DataTable |
GetString(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public string GetString(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
String |
GetValue(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public object GetValue(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Object |
GetValues(Object[])
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public int GetValues(object[] values)
Parameters
Type | Name | Description |
---|---|---|
Object[] | values |
Returns
Type | Description |
---|---|
Int32 |
IsDBNull(Int32)
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public bool IsDBNull(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Returns
Type | Description |
---|---|
Boolean |
NextResult()
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public bool NextResult()
Returns
Type | Description |
---|---|
Boolean |
Read()
Helper class to serve an IArchiveProvider as an IDataReader; generally used for the implementation of the GetReader method of IArchiveProviderHasRows interface.
Declaration
public bool Read()
Returns
Type | Description |
---|---|
Boolean |