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