我不知道这是否对您有帮助。
NorthwindDataContext dc = new NorthwindDataContext(); dc.Log = Console.Out;var query = from c in dc.Customers where !(from o in dc.Orders select o.CustomerID) .Contains(c.CustomerID) select c;foreach (var c in query) Console.WriteLine( c );
从在LINQ的NOT
IN子句,SQL由马可·鲁索
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)