[]
        
(Showing Draft Content)

C1.Data.Entities.EntityFrameworkExtensions.AsCollectionView

AsCollectionView Method

AsCollectionView<T>(EntityCollection<T>)

Converts an System.Data.Entity.Core.Objects.DataClasses.EntityCollection<> to an editable ICollectionView.

Declaration
public static ICollectionView AsCollectionView<T>(this EntityCollection<T> entities) where T : class, IEntityWithRelationships
Parameters
Type Name Description
EntityCollection<T> entities

The System.Data.Entity.Core.Objects.DataClasses.EntityCollection<> to convert.

Returns
Type Description
ICollectionView

The resulting ICollectionView.

Type Parameters
Name Description
T

The type of the entities in the entities.