Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Collection Properties in EF 6 and EF Core

The example below illustrates how to implement Collection Properties in an EF 6 or EF Core class.

public virtual IList<AssociatedObject> Association { get; set; }
[DevExpress.ExpressApp.DC.AggregatedAttribute]
public virtual IList<AggregatedObject> AggregatedAssociation { get; set; }

Note that the collection properties should be declared as virtual in EF 6 and EF Core.