mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Support Json.net JValue
This commit is contained in:
parent
8a94d1be31
commit
7ca2434e05
@ -172,6 +172,10 @@ namespace SqlSugar
|
||||
this.DbType = System.Data.DbType.Date;
|
||||
this.Value = UtilMethods.DateOnlyToDateTime(this.Value);
|
||||
}
|
||||
else if (type?.FullName == "Newtonsoft.Json.Linq.JObject" || type?.FullName == "Newtonsoft.Json.Linq.JArray" || type?.FullName == "Newtonsoft.Json.Linq.JValue")
|
||||
{
|
||||
this.Value =this.Value==null?default(string):this.Value.ObjToString() ;
|
||||
}
|
||||
|
||||
}
|
||||
public SugarParameter(string name, object value, bool isOutput)
|
||||
|
Loading…
Reference in New Issue
Block a user