FreeSql/Extensions/FreeSql.Extensions.JsonMap
dependabot[bot] 11bcf3494d
Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /Examples/base_entity
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-23 02:16:53 +00:00
..
2021-08-30 12:26:30 +08:00
2020-02-23 12:22:36 +08:00
2021-08-12 00:13:34 +08:00

中文 | English

FreeSql extension package, map ValueObject to typeof(string), install the extension package:

dotnet add package FreeSql.Extensions.JsonMap

fsql.UseJsonMap(); //Turn on function

class TestConfig
{
    public int clicks { get; set; }
    public string title { get; set; }
}

[Table(Name = "sysconfig")]
public class S_SysConfig<T>
{
    [Column(IsPrimary = true)]
    public string Name { get; set; }

    [JsonMap]
    public T Config { get; set; }
}