public IList<GaCha_JiBen> GaChaPersonCount(int gaChaID)
{
var query = from c in dc.JT_JiBenQingKuangs where dc.F_split(c.FB_Address,4,"/")==" + gaChaID + " select c.FB_Address; IList<GaCha_JiBen> HUI = query.ToList();//出错行 return HUI;
}
query为什么转换不了阿?
怎么办
{
var query = from c in dc.JT_JiBenQingKuangs where dc.F_split(c.FB_Address,4,"/")==" + gaChaID + " select c.FB_Address; IList<GaCha_JiBen> HUI = query.ToList();//出错行 return HUI;
}
query为什么转换不了阿?
怎么办
你明显类型不对么。
改为:
var query = from c in dc.JT_JiBenQingKuangs where dc.F_split(c.FB_Address,4,"/")== gaChaID select c.FB_Address;