找了很多资料,但是都是说使用and 如果是用and的话 A!=5 and B!=1,这样子的话凡是A!=5都会被筛选掉,而不是两个条件为true才筛选,但是换成等于号就没问题。后来看到网友说sql中使用not(A=5 and B=1),自己试了一下确实没问题,就不会出现上面说的情况,但是如果在Linq中又是用什么语句呢?
weixin_30410999的博客Chapter 12 inPro LINQ Object Relational Mapping with C# 2008 Vijay P....LINQ to SQL (LTS) vs the Entity Framework(EF) Now that you have seen LTS and EF in action, it is time to look...