linq语法积累

//按条件查询表中的数据

from u in Yxs_products
where u.Pro_ID>2
select u
 
//按条件查询表中两列数据
from u in Yxs_products
where u.Pro_ID>2
select new{u.Pro_ID,u.Pro_NO}
原文地址:https://www.cnblogs.com/jiayue360/p/3166914.html