public AssociationSetData this[AssociationSet associationSet] { get { ExceptionUtilities.CheckArgumentNotNull(associationSet, "associationSet"); AssociationSetData asd; if (!this.associationDataSets.TryGetValue(associationSet, out asd)) { this.ValidateAssociationSet(associationSet); asd = new AssociationSetData(this, associationSet); this.associationDataSets.Add(associationSet, asd); } return(asd); } }
/// <summary> /// Initializes a new instance of the <see cref="AssociationSetDataRow"/> class. /// </summary> /// <param name="parent">The association set data this row belongs to.</param> internal AssociationSetDataRow(AssociationSetData parent) { this.Parent = parent; this.data = new EntityDataKey[parent.AssociationSet.Ends.Count]; }