Code collation

This commit is contained in:
sunkaixuan
2017-06-19 01:51:52 +08:00
parent 56478c07e7
commit 9ed37f0760

View File

@@ -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)
{