摘要: 实现N个表左连接 var result = this.dbContext.Orders .GroupJoin( this.dbContext.Customers .Where(c => !c.MarkedAsDeleted), // 过滤掉被标记为删除的客户 order => order.Code, 阅读全文
posted @ 2024-08-28 00:07 NAfei 阅读(46) 评论(0) 推荐(0)
摘要: SQL SEVER 清理Log EXEC sp_helpfile; DBCC SHRINKFILE ([日志文件逻辑名称], 1); -- 将其缩减到 1MB,具体大小可以根据需要调整 清空数据库表数据 USE [DataBase]; -- 切换到你的数据库 DECLARE @TableName N 阅读全文
posted @ 2024-08-28 00:03 NAfei 阅读(19) 评论(0) 推荐(0)