mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
Rename readme.md to README.MD
This commit is contained in:
25
Extensions/FreeSql.Extensions.JsonMap/README.MD
Normal file
25
Extensions/FreeSql.Extensions.JsonMap/README.MD
Normal file
@ -0,0 +1,25 @@
|
||||
[中文](README.zh-CN.MD) | **English**
|
||||
|
||||
FreeSql extension package, map *ValueObject* to `typeof(string)`, install the extension package:
|
||||
|
||||
> dotnet add package FreeSql.Extensions.JsonMap
|
||||
|
||||
```csharp
|
||||
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; }
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user