mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	
		
			
				
	
	
	
		
			517 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			517 B
		
	
	
	
	
	
	
	
中文 | 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; }
}