Linq 将两个查询结果合称为一个
2024-10-20 02:33:37
var handsonitems = from a in db.DltQuestionHandson
join c in db.DltBdChapter
on new { a.ChapterCode } equals new { c.ChapterCode }
select new
{
a.PlantCode,
c.ChapterCode,
c.ChapterKnowledge,
a.OrgSkillId,
c.SkillCode
};
var Jobevalitems = from a in db.DltQuestionJobeval
join c in db.DltBdChapter
on new { a.ChapterCode } equals new { c.ChapterCode }
select new
{
a.PlantCode,
c.ChapterCode,
c.ChapterKnowledge,
a.OrgSkillId,
c.SkillCode
};
var items = handsonitems.Union(Jobevalitems);
最新文章
- MFC序列化与反序列化
- Akka-remote使用入门
- 你的USB设备还安全吗?USB的安全性已从根本上被打破!
- 在Sublime中编辑批处理并运行
- html使用心得
- 连HTTPS都有漏洞,这么不安全的互联网我们还要继续用吗?
- text-indent
- Lua截取utf-8编码的中英文混合字符串
- php中的引用类型和值类型
- Shell编程中Shift的用法
- Java基础之写文件——使用Formatter对象加载缓冲区(UsingAFormatter)
- gitlab10.0安装手记
- python语言学习---4
- PHP函数之dirname()
- UVA 12345 Dynamic len(带修莫队)
- spring-boot json数据交互
- Entangle 2.0 “Sodium”正式发布
- Luogu4221 WC2018州区划分(状压dp+FWT)
- 底板芯片组与内存映射(Motherboard Chipsets and the Memory Map) 【转】
- Rplidar学习(三)—— ROS下进行rplidar调试
热门文章
- Selenium通过监听事件实现自动截图
- Spark应用程序开发流程
- 【IDE_IntelliJ IDEA】idea主题设置
- windows API下的模板缓冲(stencil buffer)
- MacOS上传文件到windows ftp时链接文件不见了
- CPDF_Document
- 文件上传-pubsec-文件上传大小限制
- volatile关键字及Java内存模式
- 如何使用 aph-cli 搭建本地静态开发环境(server + proxy + mock)
- Leetcode.142-Linked-list-cycle-ii(环形链表II)