内联:没有into

左联:有into

例子:

from GoodsStore in this.GetCurrentDbSession.Tbl_OfficeSupplies_GoodsStoreDLL.LoadEntities(a => (Guid.Empty==GoodsID?true:a.GoodsID==GoodsID))
join goods in GetCurrentDbSession.Tbl_OfficeSupplies_GoodsDLL.LoadEntities(a => (Guid.Empty == GoodsCategoryID ? true : a.GoodsCategoryID == GoodsCategoryID) && (Guid.Empty == GoodsID ? true : a.ID == GoodsID))
on GoodsStore.GoodsID equals goods.ID
join goodscategory in this.GetCurrentDbSession.Tbl_OfficeSupplies_GoodsCategoryDLL.LoadEntities(a => (Guid.Empty == GoodsCategoryID ? true : a.ID == GoodsCategoryID))
on goods.GoodsCategoryID equals goodscategory.ID
join goodsSpecifications in GetCurrentDbSession.Tbl_OfficeSupplies_GoodsSpecificationDLL.LoadEntities(a => true)
on GoodsStore.GoodsSpecificationID equals goodsSpecifications.ID
join goodsUnit in GetCurrentDbSession.Tbl_OfficeSupplies_GoodsUnitDLL.LoadEntities(a => true)
on goods.UnitID equals goodsUnit.ID into tmp1
from tt in tmp1.DefaultIfEmpty()
select new
{
GoodsID = goods.ID == null ? Guid.Empty : tt.ID,
GoodsName = goods.Name,
GoodsCategoryName = goodscategory.Name,
GoodsSpecificationID = goodsSpecifications.ID == null ? Guid.Empty : goodsSpecifications.ID,
GoodsSpecificationName = goodsSpecifications.Name,
GoodsUnitName = tt.Name,
Count= GoodsStore.Count,
ProcurementCount=GoodsStore.ProcurementCount,
ApplyCount= GoodsStore.ApplyCount
};

最新文章

  1. 判断是否安装APP
  2. SpringMVC框架下实现JSON(类方法中回传数据到jsp页面,使用jQuery方法回传)
  3. spring bean生命周期管理--转
  4. css3-新属性-用户界面
  5. EncryptTransform
  6. ThinkPHP邮件发送函数示例
  7. mysql的事务处理与锁表
  8. [OJ] Find Minimum in Rotated Sorted Array
  9. NIOS中双CPU系统的构建
  10. hnsd11348tree(并查集)
  11. leetcode24,交换链表相邻的节点
  12. File 常用方法
  13. 为Lua5.3编写C模块简单示例
  14. 使用grafana provisioning通过配置方式添加datasource和dashboard
  15. DATEADD日期函数的使用
  16. vuex-Mutation(同步)
  17. 猫眼电影爬取(三):requests+pyquery,并将数据存储到mysql数据库
  18. (转载)Fiddler调式使用知多少(一)深入研究
  19. (转)Python数据分析之numpy学习
  20. Linux中下载、解压、安装文件(转)

热门文章

  1. 【proxy agent资料】
  2. linux设置定制器自动执行任务
  3. More is better——并查集求最大集合(王道)
  4. appium自动化,失败自动截图
  5. RocketMQ之broker读取本地文件数据
  6. Unity多媒体展示项目经验分享-ImageEffect+动态绑定
  7. iOS编程 手动忽略clang编译器警告
  8. 【Excle】两个表格多列数据对比,找出差异
  9. Apache代理80端口
  10. <转>程序员的心理疾病