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 As {Class, System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships})( _
ByVal As System.Data.Entity.Core.Objects.DataClasses.EntityCollection(Of T) _
) As System.ComponentModel.ICollectionView
public static System.ComponentModel.ICollectionView AsCollectionView<>(
System.Data.Entity.Core.Objects.DataClasses.EntityCollection<T>
)
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 .
Return Value
The resulting System.ComponentModel.ICollectionView.
See Also