关于转成JSON格式输出的问题
这样红括号中的格式 怎么怎么生产啊 这是小弟的 var New = from a in dataContext.org
from b in dataContext.org
where a.PKOrgID.ToString() == orgid && a.ParentID == "0"
&& b.ParentID == orgid
select new
{
OrgName = a.OrgName,
MasterName = a.MasterName,
BranchName = b.OrgName,
Mobile = a.Mobile,
TelPhone = a.Telephone,
Fax = a.Fax,
Email = a.Email,
};
LINQ查询数据代码。还望大神给点指导~ 分不多。。别介意~
------解决方案--------------------你确定是 "a":"1,2,3,4" ,而不是 "a":["1","2","3","4"] 或者 "a":[1,2,3,4] ??
------解决方案--------------------http://www.cnblogs.com/coderzh/archive/2008/11/25/1340862.html