EF的 JOIN操作

var customers = DB.Customer.Join(DB.Commission, cst => cst.CommissionId,
                                        com => com.CommissionId, (cst, com) => new Customer()
                                        {
                                            CommissionId = com.CommissionId,
                                            CustomerId = cst.CustomerId,
                                            CustomerName = cst.CustomerName,
                                            ERPCustomerNo = cst.ERPCustomerNo,
                                            UserId = cst.UserId
                                        }).ToList();

上一篇:Linux 的 Shell


下一篇:jQuery整理您的笔记----jQuery开始