1 / 19

Introduction to Entity Framework Core 7.0

Entity Framework Core 7.0 is a lightweight Entity Framework implementation. It has also been designed to be easy to use by developers who are new to Entity Framework or are migrating from an earlier version of Entity Framework to help them get up and running quickly with their projects. In this presentation, Blueflame labs, Microsoft consulting services, covered newly supported features of Entity Framework 7.0, that has the potential to change the way we perform day-to-day development. <br><br>Read more: https://www.theblueflamelabs.com/introduction-entity-framework-core/

Download Presentation

Introduction to Entity Framework Core 7.0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Entity Framework Core 7.0

  2. WHAT IS ENTITY FRAMEWORK CORE 7.0? • EF Core 7.0 is the next release after EF core 6.0 and it will release in November 2022. • EF7 will coordinate with the .NET support policy. It will no longer be an LTS release. • The Microsoft Entity Framework (EF) is Microsoft’s utilization of Object Relation Mapper (ORM) Framework and it’s a data access technology. • It is an open-source Framework by Microsoft. • For Package Installation:

  3. EF CORE TOOLING

  4. EF CORE TOOLING • .NET platform has evolved since we first introduced tooling for migration, database scaffolding, etc. • In EF Core 7.0 tooling architecture is updated to greater support new platforms like .NET MAUI, and to consolidate the process in areas such as multiple projects. • This contains delivering enhance feedback when things go wrong, better integration with logging, performance, etc.

  5. EF CORE TOOLING • Package Validation tooling will grant library developers to validate that their packages are persistent and graceful. • It implies validating that there are no breaking changes over versions. • It will authenticate that the package must have the same number of public APIs for all various runtime-specific implementations. • It will also endorse developers to grab any relevant holes.

  6. ENTITY FRAMEWORK CORE 7.0 & GRAPHICAL USER INTERFACES • Entity Framework Core 7.0 is intended to work well with data binding scenarios such as those in Windows Forms & .NET MAUI. • However, associating the dots with this technology is not always easy. • For EF 7, idea is to enhance the experience with both works in EF core and in visual studio to make it effortless for binding data application with EF Core.

  7. SDK WORKLOADS • .NET SDK is the base SDK for. NET. The other SDKs associated with the .NET SDK and the projects which are about the other SDKs have all the .NET SDK features accessible to them. • The Web SDK, for example, is dependent on both the Razor and .NET SDK. • The .NET workload command operates in connection with the specific SDK versions. • Workloads are categorized or grouped into Windows workgroup, Web & Cloud workgroup, Mobile & Gaming workgroup, other toolsets, etc. Below are many commands of SDK workload

  8. SDK WORKLOADS • dotnet workload install- Installs one or more optional workloads.

  9. SDK WORKLOADS • dotnet workload list- List all install workloads.

  10. SDK WORKLOADS • dotnet workload update – Updates installed workloads.

  11. SDK WORKLOADS • dotnet workload search – Look for alternative Workloads. • dotnet workload uninstalls – Uninstall a specific workload. • dotnet workload repair- Re-installs all installed workloads • dotnet SDK check- Lists latest available version of the .NET SDK and .NET runtime, for each featured band.

  12. PERFORMANCE • Entity Framework Core 7 planning to focus on performance related to database inserts and updates. • It includes the performance of change-tracking queries and the performance of detecting changes. • Part of its work includes the implementation of bulk updates. In the contrast, bulk, or set-based, updates involve defining the changes that should be made to the DB and then executing those changes without first loading entities into memory. • This can be faster than tracked updates and especially when the same modification must be applied to many different entities or rows. • Entity framework 7 planning to implement bulk updates and deletes. but that bulk updates are not the same as batch updates. • Entity framework core already combines changes to many tracked entities into batches whenever sending updates to the database via Save changes.

  13. ENTITY FRAMEWORK CORE 7.0 PREVIEW NEW FEATURES • Automatic Migration • Open-source • Lightweight and Extensible: EF 7 comes with smaller sizes DLLS as compared to EF 6. • Supported Platforms: All .NET Applications, Mac and Linux application, Windows Platform. • Now with EF 7, we can be used to support non-relational data stores, provide support to NoSQL databases. • For testing of a block of code EF 7 provides supports in-memory tables. • Support Cascade Delete – It Means when parent data is deleted automatically child data is also deleted.

  14. THEMES The large investment in EF7 will plunge essentially under the following themes: • Highly requested features. • NET platforms and ecosystem. • A clear path forward from EF6

  15. THEMES: HIGHLY REQUESTED FEATURES • JSON columns: Save and query into JSON documents saves in relational database columns. • This aspect will introduce a common process and patterns for JSON support. • Database scaffolding template: The code formed by dotnet if database scaffold is entirely modifiable.

  16. THEMES: HIGHLY REQUESTED FEATURES

  17. Table-per-concrete-type (TPC) typing: EF core supports table-per-hierarchy (TPH) and table-per-type (TPT) mapping for .NET inheritance hierarchies. • However, TPT maps properties to columns in a table from a base type while TPC maps properties to the same table of the base type as the certain concrete type being mapped.

  18. NET PLATFORMS AND ECOSYSTEM • SqlServer.Core(Woodstar): Microsoft.Data.SqlClient is an ADO.NET database provider for SQL Server. • It supports SQL server features on .NET Framework and .NET Core. • This makes it more complex to inspect the conceivable gains using newer.net core features. • Evolve System.Linq.Expression: In this entity framework core 7.0 more c# additional features will get added which will be more helpful for the developer to write LINQ queries or expressions.

  19. CLEAR PATH FORWARD FROM EF6 CONCLUSION • The features which were not in the EF6 stack are now covered in the EF7 and supported many scenarios which will be helpful and allow more applications to port from legacy EF6 to EF7 • In this blog, we covered newly supported features of Entity Framework 7.0, that we prognosticate will change the way we perform day-to-day development. • We all are excited about all of them and can’t look forward to November 2022 to shoulder them go in their full glory. • The Blueflame Labs offersMicrosoft consulting services, and such kinds of implementations and we are happy to assist you.

More Related