Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一组表需要对其运行一些查询。使用的 2-3 个表是相同的,因此创建一个 tmp 表是有意义的(对服务器的访问受限,所以没有视图,请存储 proc 解决方案)。知道如何使用 linq2db 来实现吗?TIA
using (var db = new DataConnection() { var tempTable = db.CreateTable<MyTempTable("#tmp"); ( from t in ... select t... ).Insert(tempTable, t => new MyTempTable { Field1 = t.... }); }