performance optimization

This commit is contained in:
sunkaixuan
2017-08-26 14:51:57 +08:00
parent 8f60b747b5
commit d97e6f98be

View File

@@ -53,11 +53,11 @@ namespace SqlSugar
public static DateTime? GetConvertDateTime(this IDataRecord dr, int i)
{
if (dr.IsDBNull(i))
{
return null;
}
var reval = dr.GetDateTime(i);
if (reval == DateTime.MinValue)
{
return null; ;
}
return reval;
}