Encapsulated Collections in Entity Framework Core

added by DotNetKicks
1/18/2017 2:39:19 PM

2 Kicks, 392 Views

Starting with Entity Framework Core 1.1, you can now have properly encapsulated collections in your classes that rely on EF for persistence. Previous versions of EF have required collection properties to support ICollection , which means any user of the class can add or remove items from its properties (or even Clear it).


0 comments