Exemplo n.º 1
0
        private void HandleAssociationSetElement(XmlReader reader)
        {
            EntityContainerAssociationSet containerAssociationSet = new EntityContainerAssociationSet(this);

            containerAssociationSet.Parse(reader);
            this.Members.Add((SchemaElement)containerAssociationSet, true, new Func <object, string>(Strings.DuplicateEntityContainerMemberName));
        }
Exemplo n.º 2
0
        private void HandleAssociationSetElement(XmlReader reader)
        {
            DebugCheck.NotNull(reader);
            var set = new EntityContainerAssociationSet(this);

            set.Parse(reader);
            Members.Add(set, true, Strings.DuplicateEntityContainerMemberName);
        }
Exemplo n.º 3
0
        internal override SchemaElement Clone(SchemaElement parentElement)
        {
            EntityContainerAssociationSet containerAssociationSet = new EntityContainerAssociationSet((EntityContainer)parentElement);

            containerAssociationSet.Name         = this.Name;
            containerAssociationSet.Relationship = this.Relationship;
            foreach (SchemaElement end in this.Ends)
            {
                EntityContainerAssociationSetEnd associationSetEnd = (EntityContainerAssociationSetEnd)end.Clone((SchemaElement)containerAssociationSet);
                containerAssociationSet._relationshipEnds.Add(associationSetEnd.Role, associationSetEnd);
            }
            return((SchemaElement)containerAssociationSet);
        }
Exemplo n.º 4
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);
        }
Exemplo n.º 5
0
 /// <summary>
 ///     Constructs an EntityContainerAssociationSetEnd
 /// </summary>
 /// <param name="parentElement"> Reference to the schema element. </param>
 public EntityContainerAssociationSetEnd(EntityContainerAssociationSet parentElement)
     : base(parentElement)
 {
 }
 // <summary>
 // Constructs an EntityContainerAssociationSetEnd
 // </summary>
 // <param name="parentElement"> Reference to the schema element. </param>
 public EntityContainerAssociationSetEnd(EntityContainerAssociationSet parentElement)
     : base(parentElement)
 {
 }
Exemplo n.º 7
0
 private void HandleAssociationSetElement(XmlReader reader)
 {
     DebugCheck.NotNull(reader);
     var set = new EntityContainerAssociationSet(this);
     set.Parse(reader);
     Members.Add(set, true, Strings.DuplicateEntityContainerMemberName);
 }
Exemplo n.º 8
0
 public EntityContainerAssociationSetEnd(EntityContainerAssociationSet parentElement)
     : base((EntityContainerRelationshipSet)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;
        }