mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
Merge pull request #247 from EternityTeam/master
Json扩展支持JsonSerializerSettings
This commit is contained in:
commit
b8f5071ea0
@ -21,9 +21,10 @@ namespace FreeSql.Extensions
|
|||||||
/// 当实体类属性为【对象】时,并且标记特性 [JsonMap] 时,该属性将以JSON形式映射存储
|
/// 当实体类属性为【对象】时,并且标记特性 [JsonMap] 时,该属性将以JSON形式映射存储
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
||||||
public static void UseJsonMap(this IFreeSql that)
|
public static void UseJsonMap(this IFreeSql that)
|
||||||
{
|
{
|
||||||
UseJsonMap(that, null);
|
UseJsonMap(that, Newtonsoft.Json.JsonConvert.DefaultSettings?.Invoke() ?? new JsonSerializerSettings());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void UseJsonMap(this IFreeSql that, JsonSerializerSettings settings)
|
public static void UseJsonMap(this IFreeSql that, JsonSerializerSettings settings)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user