Linq知识

# Linq ForEach 使用请注意

 First和FirstorDefault 
 First在查询数据不存在的时候会抛出异常,而FirstorDefault则返回null  

猜你喜欢

转载自www.cnblogs.com/shanshuiYiCheng/p/10643831.html