下面是方法的代码
string linkStr = "";
DataTable dt = PageString.GetPage(10, "Message", "ID", "Default.aspx", "[ID],[Title],[Content],[CreateTime],[UpdateTime],[UserId],[ParentId],[Email],[HomePage],[SupportCount]", "1=1", "CreateTime desc", out linkStr, 1);
string jsonString = JsonConvert.SerializeObject(new { linkStr = linkStr, result = dt });
报错的是下面的提示,我之前用过好像没有这种错误
找不到方法:“Boolean System.Runtime.Serialization.DataContractAttribute.get_IsReference()”。
肥皂起泡泡