mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-02 03:13:58 +08:00
Code collation
This commit is contained in:
@@ -16,27 +16,13 @@ namespace SqlSugar
|
||||
public partial class IDataReaderEntityBuilder<T>
|
||||
{
|
||||
#region Properies
|
||||
private SqlSugarClient Context = null;
|
||||
private IDataReaderEntityBuilder<T> DynamicBuilder;
|
||||
private IDataRecord DataRecord;
|
||||
private List<string> ReaderKeys { get; set; }
|
||||
private IDataReaderEntityBuilder()
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
public IDataReaderEntityBuilder(SqlSugarClient context, IDataRecord dataRecord)
|
||||
{
|
||||
this.Context = context;
|
||||
this.DataRecord = dataRecord;
|
||||
this.DynamicBuilder = new IDataReaderEntityBuilder<T>();
|
||||
this.ReaderKeys = new List<string>();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Fields
|
||||
private SqlSugarClient Context = null;
|
||||
private IDataReaderEntityBuilder<T> DynamicBuilder;
|
||||
private IDataRecord DataRecord;
|
||||
private static readonly MethodInfo isDBNullMethod = typeof(IDataRecord).GetMethod("IsDBNull", new Type[] { typeof(int) });
|
||||
private static readonly MethodInfo getValueMethod = typeof(IDataRecord).GetMethod("get_Item", new Type[] { typeof(int) });
|
||||
private static readonly MethodInfo getBoolean = typeof(IDataRecord).GetMethod("GetBoolean", new Type[] { typeof(int) });
|
||||
@@ -71,6 +57,21 @@ namespace SqlSugar
|
||||
private Load handler;
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
private IDataReaderEntityBuilder()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public IDataReaderEntityBuilder(SqlSugarClient context, IDataRecord dataRecord)
|
||||
{
|
||||
this.Context = context;
|
||||
this.DataRecord = dataRecord;
|
||||
this.DynamicBuilder = new IDataReaderEntityBuilder<T>();
|
||||
this.ReaderKeys = new List<string>();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public methods
|
||||
public T Build(IDataRecord dataRecord)
|
||||
{
|
||||
@@ -133,7 +134,6 @@ namespace SqlSugar
|
||||
private void BindClass(ILGenerator generator, LocalBuilder result, PropertyInfo propertyInfo)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
private void BindField(ILGenerator generator, LocalBuilder result, PropertyInfo propertyInfo, string fileName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user