Linq语句jion on后指定多个条件

代码如下:

        private void FrmMain_Load(object sender, EventArgs e)
        {
           var list1 = Supplier.GetSuppliers();
            var list2 = Product.GetProducts();
            var listEnd = from a in list1
                          join b in list2
                         on new { id = a.SupplierID, name = a.Name }
                         equals new { id = b.SupplierID, name = b.Name }
                         select new { };
        }

  

原文地址:https://www.cnblogs.com/Angel-szl/p/10404668.html