ComponentOne Data Source for Entity Framework
C1.Data.Entities Namespace / EntityFrameworkExtensions Class / AsCollectionView<T> Method
The type of the entities in the entities.
The System.Data.Entity.Core.Objects.DataClasses.EntityCollection`1 to convert.

In This Topic
    AsCollectionView<T> Method
    In This Topic
    Converts an System.Data.Entity.Core.Objects.DataClasses.EntityCollection`1 to an editable System.ComponentModel.ICollectionView.
    Syntax
    'Declaration
     
    
    Public Shared Function AsCollectionView(Of T As {Class, System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships})( _
       ByVal entities As System.Data.Entity.Core.Objects.DataClasses.EntityCollection(Of T) _
    ) As System.ComponentModel.ICollectionView
    public static System.ComponentModel.ICollectionView AsCollectionView<T>( 
       System.Data.Entity.Core.Objects.DataClasses.EntityCollection<T> entities
    )
    where T: class, System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships

    Parameters

    entities
    The System.Data.Entity.Core.Objects.DataClasses.EntityCollection`1 to convert.

    Type Parameters

    T
    The type of the entities in the entities.

    Return Value

    The resulting System.ComponentModel.ICollectionView.
    See Also