上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 399 下一页
摘要: 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 阅读(73) 评论(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 阅读(63) 评论(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 阅读(48) 评论(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 阅读(39) 评论(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 阅读(2413) 评论(0) 推荐(0)
摘要: Queryable Extensions When using an ORM such as NHibernate or Entity Framework with AutoMapper’s standard mapper.Map functions, you may notice that the 阅读全文
posted @ 2022-08-18 12:10 ChuckLu 阅读(71) 评论(0) 推荐(0)
摘要: Entity Framework Classic Include The Include method lets you add related entities to the query result. In EF Classic, the Include method no longer ret 阅读全文
posted @ 2022-08-17 14:16 ChuckLu 阅读(37) 评论(0) 推荐(0)
摘要: https://docs.automapper.org/en/stable/Queryable-Extensions.html ProjectTo must be the last call in the chain. ORMs work with entities, not DTOs. So ap 阅读全文
posted @ 2022-08-17 14:11 ChuckLu 阅读(72) 评论(0) 推荐(0)
摘要: Plain Old CLR Object vs Data Transfer Object POCO = Plain Old CLR (or better: Class) Object DTO = Data Transfer Object In this post there is a differe 阅读全文
posted @ 2022-08-17 13:55 ChuckLu 阅读(50) 评论(0) 推荐(0)
摘要: When should I use the HashSet<T> type? I am exploring the HashSet<T> type, but I don't understand where it stands in collections. Can one use it to re 阅读全文
posted @ 2022-08-17 13:39 ChuckLu 阅读(31) 评论(0) 推荐(0)
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 399 下一页