1 instantiation of EntityCollection
System.Data.Entity (1)
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
961relatedEnd = new EntityCollection<TTargetEntity>(wrappedOwner, navigation, relationshipFixer);
23 references to EntityCollection
System.Data.Entity (23)
System\Data\Objects\DataClasses\RelationshipManager.cs (14)
203internal EntityCollection<TTargetEntity> GetRelatedCollection<TSourceEntity, TTargetEntity>(string relationshipName, 209EntityCollection<TTargetEntity> collection; 217collection = relatedEnd as EntityCollection<TTargetEntity>; 228return CreateRelatedEnd<TSourceEntity, TTargetEntity>(navigation, sourceRoleMultiplicity, RelationshipMultiplicity.Many, existingRelatedEnd) as EntityCollection<TTargetEntity>; 244collection = CreateRelatedEnd<TSourceEntity, TTargetEntity>(navigation, sourceRoleMultiplicity, RelationshipMultiplicity.Many, existingRelatedEnd) as EntityCollection<TTargetEntity>; 251RemergeCollections(relatedEnd as EntityCollection<TTargetEntity>, collection); 276private void RemergeCollections<TTargetEntity>(EntityCollection<TTargetEntity> previousCollection, 277EntityCollection<TTargetEntity> collection) 576public void InitializeRelatedCollection<TTargetEntity>(string relationshipName, string targetRoleName, EntityCollection<TTargetEntity> entityCollection) 599EntityCollection<TTargetEntity> collection = GetRelatedEndInternal(relationshipName, targetRoleName, entityCollection, relationship) as EntityCollection<TTargetEntity>; 862public EntityCollection<TTargetEntity> GetRelatedCollection<TTargetEntity>(string relationshipName, string targetRoleName) 865EntityCollection<TTargetEntity> collection = GetRelatedEndInternal(PrependNamespaceToRelationshipName(relationshipName), targetRoleName) as EntityCollection<TTargetEntity>;
System\Data\Objects\ELinq\InitializerFacet.cs (3)
491public static EntityCollection<T> CreateEntityCollection<T>(Shaper state, IEntityWrapper wrappedOwner, Coordinator<T> coordinator, string relationshipName, string targetRoleName) 500EntityCollection<T> result = wrappedOwner.RelationshipManager.GetRelatedCollection<T>(relationshipName, targetRoleName); 531typeof(EntityCollection<>), typeof(ICollection<>),
System\Data\Objects\ELinq\Translator.cs (2)
366if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(EntityCollection<>)) 639return typeof(EntityCollection<>).GetProperty(ExpressionConverter.s_entityCollectionCountPropertyName, BindingFlags.Public | BindingFlags.Instance);
System\Data\Objects\ObjectViewEntityCollectionData.cs (2)
39private EntityCollection<TItemElement> _entityCollection; 58internal ObjectViewEntityCollectionData(EntityCollection<TItemElement> entityCollection)
System\Data\Objects\ObjectViewFactory.cs (2)
157internal static IBindingList CreateViewForEntityCollection<TElement>(EntityType entityType, EntityCollection<TElement> entityCollection) 207new Type[] { typeof(EntityCollection<TElement>) },