Example #1
0
        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);
            }
        }
Example #2
0
 /// <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];
 }
 /// <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];
 }