You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
488 B

using Newtonsoft.Json;
namespace SqlSugar
{
public class SerializeService:ISerializeService
{
public string SerializeObject(object value)
{
return JsonConvert.SerializeObject(value);
}
public T DeserializeObject<T>(string value)
{
var jSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
return JsonConvert.DeserializeObject<T>(value, jSetting);
}
}
}