Class EntitiesReader<T>
Inheritance
EntitiesReader<T>
Assembly: LemonEdge.Database.Connector.dll
Syntax
public class EntitiesReader<T> : IDataReader, IDataRecord, IDisposable where T : IBaseEntity
Type Parameters
Constructors
EntitiesReader(IEnumerable<T>)
Declaration
protected EntitiesReader(IEnumerable<T> items)
Parameters
Properties
Depth
Declaration
public int Depth { get; }
Property Value
FieldCount
Declaration
public int FieldCount { get; }
Property Value
GetEnumerator
Declaration
public IEnumerator<T> GetEnumerator { get; }
Property Value
IsClosed
Declaration
public bool IsClosed { get; }
Property Value
this[int]
Declaration
public object this[int i] { get; }
Parameters
Type |
Name |
Description |
int |
i |
|
Property Value
this[string]
Declaration
public object this[string name] { get; }
Parameters
Type |
Name |
Description |
string |
name |
|
Property Value
RecordsAffected
Declaration
public int RecordsAffected { get; }
Property Value
Methods
Close()
Declaration
Dispose()
Declaration
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
GetBoolean(int)
Declaration
public bool GetBoolean(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetByte(int)
Declaration
public byte GetByte(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetBytes(int, long, byte[], int, int)
Declaration
public 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
GetChar(int)
Declaration
public char GetChar(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetChars(int, long, char[], int, int)
Declaration
public 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
GetData(int)
Declaration
public IDataReader GetData(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetDataTypeName(int)
Declaration
public string GetDataTypeName(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetDateTime(int)
Declaration
public DateTime GetDateTime(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetDecimal(int)
Declaration
public decimal GetDecimal(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetDouble(int)
Declaration
public double GetDouble(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetFieldType(int)
Declaration
public Type GetFieldType(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetFloat(int)
Declaration
public float GetFloat(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetGuid(int)
Declaration
public Guid GetGuid(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetInt16(int)
Declaration
public short GetInt16(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetInt32(int)
Declaration
public int GetInt32(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetInt64(int)
Declaration
public long GetInt64(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetName(int)
Declaration
public string GetName(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetOrdinal(string)
Declaration
public int GetOrdinal(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetSchemaTable()
Declaration
public DataTable GetSchemaTable()
Returns
GetString(int)
Declaration
public string GetString(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetValue(int)
Declaration
public object GetValue(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
GetValues(object[])
Declaration
public int GetValues(object[] values)
Parameters
Type |
Name |
Description |
object[] |
values |
|
Returns
IsDBNull(int)
Declaration
public bool IsDBNull(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
NextResult()
Declaration
Returns
OverrideAccessor(int, Func<T, object>)
Declaration
public void OverrideAccessor(int colIndex, Func<T, object> accessor)
Parameters
Read()
Declaration
Returns
SetupReader(EntityDescriptor)
Declaration
protected virtual void SetupReader(EntityDescriptor descriptor)
Parameters
SetupReader(Dictionary<string, int>, Func<T, object>[])
Declaration
protected void SetupReader(Dictionary<string, int> ordinals, Func<T, object>[] accessors)
Parameters
Implements
Extension Methods