mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-25 21:22:55 +08:00
performance optimization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user