mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Json.Net Add NullValueHandling
This commit is contained in:
parent
cc025b9132
commit
8e8944b2f6
@ -234,6 +234,13 @@ namespace OrmTest.Demo
|
||||
})
|
||||
.WhereIF(false, (st, sc) => sc.Id == 1)
|
||||
.WhereIF(false, (st, sc) => st.Id == 1).ToList();
|
||||
|
||||
|
||||
var list4 = db.Queryable<Student, School>((st, sc) => new object[] {
|
||||
JoinType.Left,st.SchoolId==sc.Id
|
||||
})
|
||||
.Select((st, sc) => new { id=st.Id,school=sc }).ToList();
|
||||
|
||||
}
|
||||
public static void Join()
|
||||
{
|
||||
|
@ -188,7 +188,8 @@ namespace SqlSugar
|
||||
{
|
||||
value = value.Replace(":{}", ":null");
|
||||
}
|
||||
return JsonConvert.DeserializeObject<T>(value);
|
||||
var jSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
|
||||
return JsonConvert.DeserializeObject<T>(value,jSetting);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user