EF Core 2.1 RC Adds Lazy Loading
EF Core 2.1 RC Adds Lazy Loading
Written by Kay Ewbank   
Tuesday, 05 June 2018

The first release candidate of EF Core 2.1 is now available with support for lazy loading, parameters in entity constructors, and LINQ GroupBy translation. EF Core is the lightweight cross-platform version of Entity Framework, the Object/Relational Mapping (O/RM) framework for .NET.

While this is a minor release, there are a number of improvements, many promised when EF Core 2.0 was released last year. The improvements start with the support for lazy loading. EF Core now has the building blocks for developers to write entity classes that can load their navigation properties on demand. There's also a new package, Microsoft.EntityFrameworkCore.Proxies, that uses those building blocks to produce lazy loading proxy classes based on minimally modified entity classes.

The second improvement is actually part of the lazy loading addition. Entities that can take parameters in their constructor had to be added as one of the required building blocks for lazy loading, but can also be used in their own right. You can use parameters to inject property values, lazy loading delegates, and services.

The LINQ operator has also been improved to translate the SQL Group By clause. Until now, the GroupBy LINQ operator has always had to be evaluated in memory. Another improvement to queries means that an EF Core model can now include query types.These are read only, and don't have keys defined on them, but they can be returned directly by queries. They are intended for use if you're mapping to views or tables without primary keys, or mapping to queries defined in the model.

Value conversions are another addition to this release, meaning you'll be able to transform the values obtained from columns before they are applied to properties, and vice versa. Until now, EF Core could only map properties of types natively supported by the underlying database provider. This feature means you'll be able to store enums as strings; map unsigned integers with SQL Server; and carry out transparent encryption and decryption of property values.

ef

More Information

What’s New in EF Core 2.1

EF 2.1 on NuGet

Related Articles

Entity Framework Core 2 Released With Drawbacks

Entity Developer 6.0

EF7 Drops XML Modeling

Entity Framework Everywhere

Release Candidate of First Open Source Entity Framework Available

Entity Framework Open-Sourced - Good or Bad?

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

Banner


Amazon Neptune Graph DB Reaches GA
06/06/2018

Amazon says its graph database Neptune is now Generally Available, though only in the US and EU. Neptune is a fully managed service that can be used to create relationship graphs of highly connected d [ ... ]



Ruby 2.6 Adds JIT
11/06/2018

There's a new preview of Ruby that is the first in the Ruby 2.6.0 series. The developers say the preview has been released earlier than usual because it includes an important new feature, JIT.


More News

justjsquare

 



 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 05 June 2018 )
 
 

   
Banner
RSS feed of news items only
I Programmer News
Copyright © 2018 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.