mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update SugarParameter
This commit is contained in:
parent
5432bd9901
commit
3d1b906d2f
@ -162,12 +162,12 @@ namespace SqlSugar
|
||||
{
|
||||
this.DbType = System.Data.DbType.UInt16;
|
||||
}
|
||||
else if (type.Name == "TimeOnly")
|
||||
else if (type?.Name == "TimeOnly")
|
||||
{
|
||||
this.DbType = System.Data.DbType.Time;
|
||||
this.Value = UtilMethods.TimeOnlyToTimeSpan(this.Value);
|
||||
}
|
||||
else if (type.Name == "DateOnly")
|
||||
else if (type?.Name == "DateOnly")
|
||||
{
|
||||
this.DbType = System.Data.DbType.Date;
|
||||
this.Value = UtilMethods.DateOnlyToDateTime(this.Value);
|
||||
|
@ -162,12 +162,12 @@ namespace SqlSugar
|
||||
{
|
||||
this.DbType = System.Data.DbType.UInt16;
|
||||
}
|
||||
else if (type.Name == "TimeOnly")
|
||||
else if (type?.Name == "TimeOnly")
|
||||
{
|
||||
this.DbType = System.Data.DbType.Time;
|
||||
this.Value = UtilMethods.TimeOnlyToTimeSpan(this.Value);
|
||||
}
|
||||
else if (type.Name == "DateOnly")
|
||||
else if (type?.Name == "DateOnly")
|
||||
{
|
||||
this.DbType = System.Data.DbType.Date;
|
||||
this.Value = UtilMethods.DateOnlyToDateTime(this.Value);
|
||||
|
Loading…
Reference in New Issue
Block a user