mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 04:13:48 +08:00
Update StorageableByObject DateOnly
This commit is contained in:
parent
1191385c63
commit
75c3353db7
@ -109,6 +109,10 @@ namespace SqlSugar
|
||||
{
|
||||
return string.Join("|",thisValue as byte[]);
|
||||
}
|
||||
if (thisValue!=null&&thisValue?.GetType()?.Name == "DateOnly")
|
||||
{
|
||||
return Convert.ToDateTime(thisValue.ToString()).ToString("yyyy-MM-dd");
|
||||
}
|
||||
if (thisValue != null) return thisValue.ToString().Trim();
|
||||
return "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user