mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-19 19:47:06 +08:00
Update StorageableByObject DateOnly
This commit is contained in:
@@ -109,6 +109,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return string.Join("|",thisValue as byte[]);
|
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();
|
if (thisValue != null) return thisValue.ToString().Trim();
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user