mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-02 20:02:47 +08:00
Update sqlserver time null
This commit is contained in:
parent
b601eb5fdd
commit
c97742ab2c
@ -136,7 +136,10 @@ namespace SqlSugar
|
||||
if (isTime)
|
||||
{
|
||||
sqlParameter.SqlDbType = SqlDbType.Time;
|
||||
sqlParameter.Value = DateTime.Parse(parameter.Value?.ToString()).TimeOfDay;
|
||||
if (sqlParameter.Value != DBNull.Value)
|
||||
{
|
||||
sqlParameter.Value = DateTime.Parse(parameter.Value?.ToString()).TimeOfDay;
|
||||
}
|
||||
}
|
||||
else if (parameter.Value != null && parameter.Value is XElement)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user