Beispiel #1
0
        protected override void PreParse()
        {
            Debug.Assert(State != EFElementState.Parsed, "this object should not already be in the parsed state");

            ClearEFObject(_deleteFunction);
            _deleteFunction = null;

            ClearEFObject(_insertFunction);
            _insertFunction = null;

            ClearEFObject(_updateFunction);
            _updateFunction = null;

            base.PreParse();
        }
Beispiel #2
0
        protected override void OnChildDeleted(EFContainer efContainer)
        {
            if (efContainer == _deleteFunction)
            {
                _deleteFunction = null;
                return;
            }

            if (efContainer == _insertFunction)
            {
                _insertFunction = null;
                return;
            }

            if (efContainer == _updateFunction)
            {
                _updateFunction = null;
                return;
            }

            base.OnChildDeleted(efContainer);
        }
Beispiel #3
0
 internal override bool ParseSingleElement(ICollection <XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == DeleteFunction.ElementName)
     {
         _deleteFunction = new DeleteFunction(this, elem);
         _deleteFunction.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == InsertFunction.ElementName)
     {
         _insertFunction = new InsertFunction(this, elem);
         _insertFunction.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == UpdateFunction.ElementName)
     {
         _updateFunction = new UpdateFunction(this, elem);
         _updateFunction.Parse(unprocessedElements);
     }
     else
     {
         return(base.ParseSingleElement(unprocessedElements, elem));
     }
     return(true);
 }
        protected override void OnChildDeleted(EFContainer efContainer)
        {
            if (efContainer == _deleteFunction)
            {
                _deleteFunction = null;
                return;
            }

            if (efContainer == _insertFunction)
            {
                _insertFunction = null;
                return;
            }

            if (efContainer == _updateFunction)
            {
                _updateFunction = null;
                return;
            }

            base.OnChildDeleted(efContainer);
        }
 internal override bool ParseSingleElement(ICollection<XName> unprocessedElements, XElement elem)
 {
     if (elem.Name.LocalName == DeleteFunction.ElementName)
     {
         _deleteFunction = new DeleteFunction(this, elem);
         _deleteFunction.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == InsertFunction.ElementName)
     {
         _insertFunction = new InsertFunction(this, elem);
         _insertFunction.Parse(unprocessedElements);
     }
     else if (elem.Name.LocalName == UpdateFunction.ElementName)
     {
         _updateFunction = new UpdateFunction(this, elem);
         _updateFunction.Parse(unprocessedElements);
     }
     else
     {
         return base.ParseSingleElement(unprocessedElements, elem);
     }
     return true;
 }
        protected override void PreParse()
        {
            Debug.Assert(State != EFElementState.Parsed, "this object should not already be in the parsed state");

            ClearEFObject(_deleteFunction);
            _deleteFunction = null;

            ClearEFObject(_insertFunction);
            _insertFunction = null;

            ClearEFObject(_updateFunction);
            _updateFunction = null;

            base.PreParse();
        }