我尝试使用Newtonsoft.Json版本'Newtonsoft.Json.10.0.3'将一个DataTable对象序列化为Json '在数据库SQL服务器2012中。 该表具有类型为'geography'的列,其中包含SqlGeography类型的实例。 用于生成JSON的代码: public string SerializeToJson()
{
var connstr
我有任何方法: IExternalResponse<ReserveResponse> ReserveFreePlacement(IDictionary<int,int> ticketsInfo) {
var request = new RestRequest("", Method.POST);
request.AddJsonBody(
new
{