摘要: ef join 用法var customers = DB.Customer.Join(DB.Commission,cst => cst.CommissionId,com => com.CommissionId, (cst, com) => new Customer(){CommissionId = ... 阅读全文
posted @ 2015-09-17 15:05 甜菜波波 阅读(761) 评论(0) 推荐(1) 编辑
摘要: 1、左连接:var LeftJoin = from emp in ListOfEmployeesjoin dept in ListOfDepartmenton emp.DeptID equals dept.ID into JoinedEmpDeptfrom dept in JoinedEmpDept... 阅读全文
posted @ 2015-09-17 14:07 甜菜波波 阅读(934) 评论(0) 推荐(1) 编辑
摘要: 1.在global.asax void Application_Start(object sender, EventArgs e) { // 在应用程序启动时运行的代码 // RouteConfig.RegisterRoutes(RouteT... 阅读全文
posted @ 2015-09-17 11:43 甜菜波波 阅读(276) 评论(0) 推荐(0) 编辑