Ejemplo n.º 1
0
        private void HandleAssociationSetElement(XmlReader reader)
        {
            DebugCheck.NotNull(reader);
            var set = new EntityContainerAssociationSet(this);

            set.Parse(reader);
            Members.Add(set, true, Strings.DuplicateEntityContainerMemberName);
        }
Ejemplo n.º 2
0
        internal override SchemaElement Clone(SchemaElement parentElement)
        {
            var associationSet = new EntityContainerAssociationSet((EntityContainer)parentElement);

            associationSet.Name         = Name;
            associationSet.Relationship = Relationship;

            foreach (EntityContainerAssociationSetEnd end in Ends)
            {
                var clonedEnd = (EntityContainerAssociationSetEnd)end.Clone(associationSet);
                associationSet._relationshipEnds.Add(clonedEnd.Role, clonedEnd);
            }

            return(associationSet);
        }
Ejemplo n.º 3
0
 private void HandleAssociationSetElement(XmlReader reader)
 {
     DebugCheck.NotNull(reader);
     var set = new EntityContainerAssociationSet(this);
     set.Parse(reader);
     Members.Add(set, true, Strings.DuplicateEntityContainerMemberName);
 }
 /// <summary>
 /// Constructs an EntityContainerAssociationSetEnd
 /// </summary>
 /// <param name="parentElement">Reference to the schema element.</param>
 public EntityContainerAssociationSetEnd(EntityContainerAssociationSet parentElement)
     : base(parentElement)
 {
 }
        internal override SchemaElement Clone(SchemaElement parentElement)
        {
            var associationSet = new EntityContainerAssociationSet((EntityContainer)parentElement);

            associationSet.Name = Name;
            associationSet.Relationship = Relationship;

            foreach (EntityContainerAssociationSetEnd end in Ends)
            {
                var clonedEnd = (EntityContainerAssociationSetEnd)end.Clone(associationSet);
                associationSet._relationshipEnds.Add(clonedEnd.Role, clonedEnd);
            }

            return associationSet;
        }
 /// <summary>
 ///     Constructs an EntityContainerAssociationSetEnd
 /// </summary>
 /// <param name="parentElement"> Reference to the schema element. </param>
 public EntityContainerAssociationSetEnd(EntityContainerAssociationSet parentElement)
     : base(parentElement)
 {
 }