精通Entity Framework Core 2.0:实战指南与高级特性

5星 · 超过95%的资源 需积分: 10 35 下载量 73 浏览量 更新于2024-07-20 收藏 1.86MB PDF 举报
《Entity Framework Core Cookbook 第二版》是一本深度指南,专为.NET开发者设计,旨在帮助他们充分利用Entity Framework Core这一强大的对象关系映射工具。本书的核心内容涵盖了Entity Framework Core 1的新特性和高级功能,通过实例演示和避免常见陷阱,使读者能够有效地与数据库交互,构建复杂的系统。 书中的关键知识点包括: 1. 实用技巧:学习如何在实际项目中高效地运用Entity Framework Core,如序列键生成器的掌握,确保数据验证的准确性和完整性,特别是对一组待保存或更新的实体进行验证。 2. MVC应用优化:提升使用ASP.NET MVC Core 1开发的应用程序性能,包括如何改进MVC架构,以及如何利用查询库来优化查询性能。 3. 数据访问:掌握如何获取数据库信息,如表名、列名等,以及乐观并发控制(Optimistic Concurrency Control)和悲观并发控制(Pessimistic Concurrency Control)的实现,确保数据一致性。 4. 多线程和延迟加载:学习如何在数据层面上实现多线程和延迟加载技术,提高应用程序响应速度。 5. 性能与可扩展性:深入探讨如何提升和优化Entity Framework Core的性能和可扩展性,以适应不断增长的业务需求。 6. 避免陷阱:书中还列出了一些常见的Entity Framework Core使用误区,并提供了解决方案,帮助读者在实践中少走弯路。 作者Ricardo Peres是一位经验丰富的葡萄牙开发者,拥有超过17年的软件开发经验,对C/C++、Java、JavaScript和.NET等领域有深厚理解。他在本书中分享了他的专业知识和实战经验,同时,书中的内容还包括了对读者常见问题的解答和最佳实践。 全书共分为七个章节,每个章节都围绕一个核心主题展开,从基础操作到高级应用场景,为读者提供了全面的学习路径。此外,附录A还列举了可能遇到的一些陷阱和挑战,以便读者在实际工作中及时识别并解决。 阅读这本书,读者不仅能提升Entity Framework Core的使用技能,还能学会如何设计更好的代码结构,如遵循单一职责原则(Single Responsibility Principle),以及如何编写单元测试和模拟(Mocking)以确保代码质量。无论是初次接触Entity Framework Core还是希望进一步深化理解的开发者,这都是一本不可或缺的参考书籍。
2018-11-15 上传
Summary Entity Framework Core in Action teaches you how to access and update relational data from .NET applications. Following the crystal-clear explanations, real-world examples, and around 100 diagrams, you'll discover time-saving patterns and best practices for security, performance tuning, and unit testing. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology There's a mismatch in the way OO programs and relational databases represent data. Enti ty Framework is an object-relational mapper (ORM) that bridges this gap, making it radically easier to query and write to databases from a .NET application. EF creates a data model that matches the structure of your OO code so you can query and write to your database using standard LINQ commands. It will even automatically generate the model from your database schema. About the Book Using crystal-clear explanations, real-world examples, and around 100 diagrams, Entity Framework Core in Action teaches you how to access and update relational data from .NET applications. You'l start with a clear breakdown of Entity Framework, long with the mental model behind ORM. Then you'll discover time-saving patterns and best practices for security, performance tuning, and even unit testing. As you go, you'll address common data access challenges and learn how to handle them with Entity Framework. What's Inside Querying a relational database with LINQ Using EF Core in business logic Integrating EF with existing C# applications Applying domain-driven design to EF Core Getting the best performance out of EF Core Covers EF Core 2.0 and 2.1
2016-11-13 上传
Entity Framework Core Cookbook - Second Edition by Ricardo Peres English | 9 Nov. 2016 | ISBN: 1785883305 | 340 Pages | MOBI/EPUB/PDF+Code Files | 6.2 MB Entity Framework is a highly recommended Object Relation Mapping tool used to build complex systems. In order to survive in this growing market, the knowledge of a framework that helps provide easy access to databases, that is, Entity Framework has become a necessity. This book will provide .NET developers with this knowledge and guide them through working efficiently with data using Entity Framework Core. Key Features Learn how to use the new features of Entity Framework Core 1 Improve your queries by leveraging some of the advanced features Avoid common pitfalls Make the best of your .NET APIs by integrating with Entity Framework Book Description You will start off by learning how to efficiently use Entity Framework in practical situations. You will gain a deep understanding of mapping properties and find out how to handle validation in Entity Framework. The book will then explain how to work with transactions and stored procedures along with improving Entity Framework using query libraries. Moving on, you will learn to improve complex query scenarios and implement transaction and concurrency control. You will then be taught to improve and develop Entity Framework in complex business scenarios. With the concluding chapter on performance and scalability, this book will get you ready to use Entity Framework proficiently. What you will learn Master the technique of using sequence key generators Validate groups of entities that are to be saved / updated Improve MVC applications that cover applications developed using ASP.NET MVC Core 1 Retrieve database information (table, column names, and so on) for entities Discover optimistic concurrency control and pessimistic concurrency control. Implement Multilatency on the data side of things. Enhance the performance and/or scalability of Entity Framework Core Explore