Skip to main content
A newer version of this page is available. .

Collection Properties in Entity Framework

The example below illustrates how to implement Collection Properties in an Entity Framework Code First 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.