mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update .net core project
This commit is contained in:
@@ -66,6 +66,18 @@ namespace SqlSugar
|
||||
return thisValue == equalValue;
|
||||
}
|
||||
}
|
||||
public static string ObjToString(this object thisValue,Func<DateTime,string> formatTime)
|
||||
{
|
||||
if (formatTime != null&&thisValue is DateTime)
|
||||
{
|
||||
var dt = Convert.ToDateTime(thisValue);
|
||||
return formatTime(dt);
|
||||
}
|
||||
else
|
||||
{
|
||||
return thisValue.ObjToString();
|
||||
}
|
||||
}
|
||||
public static string ObjToString(this object thisValue)
|
||||
{
|
||||
if (thisValue != null) return thisValue.ToString().Trim();
|
||||
|
Reference in New Issue
Block a user