Inheritance: Microsoft.Data.Entity.Design.Model.Entity.TextNode
Beispiel #1
0
 protected override void PreParse()
 {
     Debug.Assert(State != EFElementState.Parsed, "this object should not already be in the parsed state");
     ClearEFObject(_summary);
     _summary = null;
     ClearEFObject(_longDescription);
     _longDescription = null;
     base.PreParse();
 }
 protected override void PreParse()
 {
     Debug.Assert(State != EFElementState.Parsed, "this object should not already be in the parsed state");
     ClearEFObject(_summary);
     _summary = null;
     ClearEFObject(_longDescription);
     _longDescription = null;
     base.PreParse();
 }
Beispiel #3
0
        protected override void OnChildDeleted(EFContainer efContainer)
        {
            if (efContainer is Summary)
            {
                _summary = null;
            }
            else if (efContainer is LongDescription)
            {
                _longDescription = null;
            }

            base.OnChildDeleted(efContainer);
        }
        protected override void OnChildDeleted(EFContainer efContainer)
        {
            if (efContainer is Summary)
            {
                _summary = null;
            }
            else if (efContainer is LongDescription)
            {
                _longDescription = null;
            }

            base.OnChildDeleted(efContainer);
        }
Beispiel #5
0
 internal override bool ParseSingleElement(ICollection <XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == Summary.ElementName)
     {
         _summary = new Summary(this, elem);
         _summary.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == LongDescription.ElementName)
     {
         _longDescription = new LongDescription(this, elem);
         _longDescription.Parse(unprocessedElements);
     }
     else
     {
         return(base.ParseSingleElement(unprocessedElements, elem));
     }
     return(true);
 }
 internal override bool ParseSingleElement(ICollection<XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == Summary.ElementName)
     {
         _summary = new Summary(this, elem);
         _summary.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == LongDescription.ElementName)
     {
         _longDescription = new LongDescription(this, elem);
         _longDescription.Parse(unprocessedElements);
     }
     else
     {
         return base.ParseSingleElement(unprocessedElements, elem);
     }
     return true;
 }