上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 401 下一页
摘要: EF join 两张表: var query = db.Categories // 第一张表 .Join(db.CategoryMaps, // 第二张表 c => c.CategoryId, // 主键 cm => cm.ChildCategoryId, // 外键 (c, cm) => new 阅读全文
posted @ 2022-08-26 15:35 ChuckLu 阅读(88) 评论(0) 推荐(0)
摘要: What difference does .AsNoTracking() make? 问题 I have a question regarding the .AsNoTracking() extension, as this is all quite new and quite confusing. 阅读全文
posted @ 2022-08-25 14:32 ChuckLu 阅读(60) 评论(0) 推荐(0)
摘要: Is automapper preventing lazy loading with EF? 问题 I have been using an AutoMapper and it seems that it gets me all the child entities (even if I don't 阅读全文
posted @ 2022-08-25 09:58 ChuckLu 阅读(113) 评论(0) 推荐(0)
摘要: Prevent properties being loaded unless specifically requested 回答1 The problem source This isn't an EF behavior, it's an Automapper behavior. public IQ 阅读全文
posted @ 2022-08-24 13:10 ChuckLu 阅读(32) 评论(0) 推荐(0)
摘要: Evaluate: lim x → 0 [1/x^2 - 1/sin^2x] L = lim x → 0 [1/x2 - 1/sin2x]. [∞ – ∞] formRead more on Sarthaks.com - https://www.sarthaks.com/354486/evaluat 阅读全文
posted @ 2022-08-23 14:46 ChuckLu 阅读(125) 评论(0) 推荐(0)
摘要: EFCore Map 2 entities to same table 问题 I'm trying to use DDD with EFCore and I am struggling to find a way to map 2 POCOs from different context that 阅读全文
posted @ 2022-08-23 13:45 ChuckLu 阅读(94) 评论(0) 推荐(0)
摘要: Explicit expansion In some scenarios, such as OData, a generic DTO is returned through an IQueryable controller action. Without explicit instructions, 阅读全文
posted @ 2022-08-23 12:18 ChuckLu 阅读(86) 评论(0) 推荐(0)
摘要: When to use Include in EF? Not needed in projection? I have the following in Entity Framework Core: public class Book { public Int32 Id { get; set; } 阅读全文
posted @ 2022-08-22 18:12 ChuckLu 阅读(70) 评论(0) 推荐(0)
摘要: What does Include() do in LINQ? 问题 I tried to do a lot of research but I'm more of a db guy - so even the explanation in the MSDN doesn't make any sen 阅读全文
posted @ 2022-08-22 18:07 ChuckLu 阅读(56) 评论(0) 推荐(0)
摘要: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) Cannot open backup device 'C:\Users\clu\ 阅读全文
posted @ 2022-08-18 14:05 ChuckLu 阅读(2520) 评论(0) 推荐(0)
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 401 下一页