日期:2014-05-20 浏览次数:20981 次
public static List<QueryTable> QueryTable { get { var x = new List<QueryTable>() { new QueryTable() {Name = "Stretch120End", TableName = "PRO_Stretch120_end"}, new QueryTable() {Name = "StoreProduct", TableName = "PRO_Store_Product"}, new QueryTable() {Name = "StoreIn", TableName = "PRO_Store_In,PRO_Store_In_Detail"}, new QueryTable() {Name = "StoreOut", TableName = "PRO_Store_Out,PRO_Store_OUT_Detail"}, new QueryTable() {Name = "Measurement80Insert", TableName = "PRO_measurement80"} }; return x; } } var arrays = from a in MODEL.Query.QueryTable.AsEnumerable() where a.Name == selectcols//selectcols为传过来的一个值 select a.TableName ; //各位帮我看看哪有问题,为什么arrays 等到的是 //System.Linq.Enumerable.WhereSelectListIterator<CHINAZTT.ZTAM.MODEL.QueryTable,string>