Code optimization

This commit is contained in:
sunkaixuan 2019-05-23 20:37:04 +08:00
parent 529d35c8d4
commit 382f8797e2
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ namespace SqlSugar
private static readonly MethodInfo getInt32 = typeof(IDataRecord).GetMethod("GetInt32", new Type[] { typeof(int) });
private static readonly MethodInfo getInt64 = typeof(IDataRecord).GetMethod("GetInt64", new Type[] { typeof(int) });
private static readonly MethodInfo getString = typeof(IDataRecord).GetMethod("GetString", new Type[] { typeof(int) });
private static readonly MethodInfo getValueMethod = typeof(IDataRecordExtensions).GetMethod("SugarGetValue");
private static readonly MethodInfo getValueMethod = typeof(IDataRecordExtensions).GetMethod("GetValue");
private static readonly MethodInfo getdatetimeoffset = typeof(IDataRecordExtensions).GetMethod("Getdatetimeoffset");
private static readonly MethodInfo getdatetimeoffsetDate = typeof(IDataRecordExtensions).GetMethod("GetdatetimeoffsetDate");
private static readonly MethodInfo getStringGuid = typeof(IDataRecordExtensions).GetMethod("GetStringGuid");

View File

@ -136,7 +136,7 @@ namespace SqlSugar
var result = dr.GetInt32(i);
return result;
}
public static object SugarGetValue(this IDataRecord dr, int i)
public static object GetValue(this IDataRecord dr, int i)
{
if (dr.IsDBNull(i))
{