Exemple #1
0
        protected override void PreParse()
        {
            ClearEFObject(_property);
            _property = null;

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

            ClearEFObject(_role);
            _role = null;

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

            ClearEFObject(_complexTypeAttr);
            _complexTypeAttr = null;

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

            ClearEFObject(_entityTypeBinding);
            _entityTypeBinding = null;

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

            ClearEFObject(_associationBinding);
            _associationBinding = null;

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

            ClearEFObject(_name);
            _name = null;
            ClearEFObjectCollection(_properties);

            base.PreParse();
        }
        /// <summary>
        ///     Change the property type to a primitive type.
        /// </summary>
        /// <param name="typeName"></param>
        public void ChangePropertyType(string typeName)
        {
            if (_typeAttrForEnumType != null)
            {
                _typeAttrForEnumType.Unbind();
                ClearEFObject(_typeAttrForEnumType);
                _typeAttrForEnumType = null;
            }

            PrimitiveTypeAttribute.Value = typeName;
        }
Exemple #8
0
        /// <summary>
        ///     Change the property type to a primitive type.
        /// </summary>
        /// <param name="typeName"></param>
        public void ChangePropertyType(string typeName)
        {
            if (_typeAttrForEnumType != null)
            {
                _typeAttrForEnumType.Unbind();
                ClearEFObject(_typeAttrForEnumType);
                _typeAttrForEnumType = null;
            }

            PrimitiveTypeAttribute.Value = typeName;
        }
Exemple #9
0
        protected override void PreParse()
        {
            Debug.Assert(State != EFElementState.Parsed, "this object should not already be in the parsed state");

            ClearEFObject(_typeAttrForPrimitiveType);
            _typeAttrForPrimitiveType = null;

            ClearEFObject(_typeAttrForEnumType);
            _typeAttrForEnumType = null;

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

            ClearEFObject(_property);
            _property = null;

            ClearEFObject(_columnNameAttr);
            _columnNameAttr = null;

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

            ClearEFObject(_tableName);
            _tableName = null;

            ClearEFObjectCollection(_scalarProperties);
            ClearEFObjectCollection(_complexProperties);
            ClearEFObjectCollection(_conditions);

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

            ClearEFObject(_relationshipBinding);
            _relationshipBinding = null;
            ClearEFObject(_fromRoleBinding);
            _fromRoleBinding = null;
            ClearEFObject(_toRoleBinding);
            _toRoleBinding = null;

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

            ClearEFObject(_functionImportName);
            _functionImportName = null;

            ClearEFObject(_functionName);
            _functionName = null;

            ClearEFObject(_resultMapping);
            _resultMapping = null;

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

            ClearEFObject(_multiplicityAttr);
            _multiplicityAttr = null;
            ClearEFObject(_typeBinding);
            _typeBinding = null;
            ClearEFObject(_roleAttr);
            _roleAttr = null;
            ClearEFObject(_onDeteleAction);
            _onDeteleAction = null;

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

            ClearEFObject(_entityTypeBinding);
            _entityTypeBinding = null;
            ClearEFObject(_pointXAttr);
            _pointXAttr = null;
            ClearEFObject(_pointYAttr);
            _pointYAttr = null;
            ClearEFObject(_widthAttr);
            _widthAttr = null;
            ClearEFObject(_isExpandedAttr);
            _isExpandedAttr = null;
            ClearEFObject(_fillColorAttr);
            _fillColorAttr = null;
            base.PreParse();
        }
        protected override void PreParse()
        {
            Debug.Assert(State != EFElementState.Parsed, "this object should not already be in the parsed state");
            Debug.Assert(_functionType != ModificationFunctionType.None, "_functionType should not be " + ModificationFunctionType.None);

            ClearEFObject(_functionName);
            _functionName = null;

            ClearEFObject(_rowsAffectedParameterAttr);
            _rowsAffectedParameterAttr = null;

            ClearEFObjectCollection(_scalarProperties);
            ClearEFObjectCollection(_complexProperties);
            ClearEFObjectCollection(_ends);
            ClearEFObjectCollection(_resultBindings);

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

            ClearEFObject(_cdmEntityContainer);
            _cdmEntityContainer = null;

            ClearEFObject(_storageEntityContainer);
            _storageEntityContainer = null;

            ClearEFObject(_generateUpdateViewsAttr);
            _generateUpdateViewsAttr = null;

            ClearEFObjectCollection(_entitySetMappings);
            ClearEFObjectCollection(_associationSetMappings);
            ClearEFObjectCollection(_functionImportMappings);
            base.PreParse();
        }
Exemple #18
0
        protected override void PreParse()
        {
            Debug.Assert(State != EFElementState.Parsed, "this object should not already be in the parsed state");

            ClearEFObject(_returnTypeAsEntityType);
            _returnTypeAsEntityType = null;
            ClearEFObject(_returnTypeAsComplexType);
            _returnTypeAsComplexType = null;
            ClearEFObject(_returnTypeAsPrimitiveType);
            _returnTypeAsPrimitiveType = null;
            ClearEFObject(_entitySet);
            _entitySet = null;
            ClearEFObject(_methodAccessAttr);
            _methodAccessAttr = null;

            ClearEFObjectCollection(_parameters);

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

            ClearEFObject(_name);
            _name = null;
            ClearEFObject(_typeName);
            _typeName = null;
            ClearEFObject(_tableName);
            _tableName = null;
            ClearEFObject(_queryView);
            _queryView = null;

            ClearEFObjectCollection(_endProperties);
            ClearEFObjectCollection(_conditions);

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

            ClearEFObject(_typeName);
            _typeName = null;

            ClearEFObjectCollection(_scalarProperties);

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

            ClearEFObject(_name);
            _name = null;

            ClearEFObjectCollection(_entityTypeMappings);

            ClearEFObjectCollection(_queryViews);

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

            ClearEFObject(_functionImportName);
            _functionImportName = null;

            ClearEFObject(_functionName);
            _functionName = null;

            ClearEFObject(_resultMapping);
            _resultMapping = null;

            base.PreParse();
        }
 internal PropertyRef(EFElement parent, XElement element, SingleItemBinding<Property>.NameNormalizer nameNormalizerForPropertyRef)
     : base(parent, element)
 {
     _nameNormalizerForPropertyRef = nameNormalizerForPropertyRef;
 }
        protected override void PreParse()
        {
            ClearEFObject(_property);
            _property = null;

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

            ClearEFObject(_relationshipBinding);
            _relationshipBinding = null;
            ClearEFObject(_fromRoleBinding);
            _fromRoleBinding = null;
            ClearEFObject(_toRoleBinding);
            _toRoleBinding = null;

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

            ClearEFObject(_typeAttrForPrimitiveType);
            _typeAttrForPrimitiveType = null;

            ClearEFObject(_typeAttrForEnumType);
            _typeAttrForEnumType = null;

            base.PreParse();
        }
Exemple #27
0
 internal PropertyRef(EFElement parent, XElement element, SingleItemBinding <Property> .NameNormalizer nameNormalizerForPropertyRef)
     : base(parent, element)
 {
     _nameNormalizerForPropertyRef = nameNormalizerForPropertyRef;
 }
        protected override void PreParse()
        {
            Debug.Assert(State != EFElementState.Parsed, "this object should not already be in the parsed state");

            ClearEFObject(_associationBinding);
            _associationBinding = null;
            ClearEFObjectCollection(_ends);

            _ends.Clear();

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

            ClearEFObject(_property);
            _property = null;

            ClearEFObject(_column);
            _column = null;

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

            ClearEFObject(_assocSet);
            _assocSet = null;

            ClearEFObject(_from);
            _from = null;

            ClearEFObject(_to);
            _to = null;

            ClearEFObjectCollection(_properties);

            base.PreParse();
        }
        protected override void PreParse()
        {
            Debug.Assert(State != EFElementState.Parsed, "this object should not already be in the parsed state");
            Debug.Assert(_functionType != ModificationFunctionType.None, "_functionType should not be " + ModificationFunctionType.None);

            ClearEFObject(_functionName);
            _functionName = null;

            ClearEFObject(_rowsAffectedParameterAttr);
            _rowsAffectedParameterAttr = null;

            ClearEFObjectCollection(_scalarProperties);
            ClearEFObjectCollection(_complexProperties);
            ClearEFObjectCollection(_ends);
            ClearEFObjectCollection(_resultBindings);

            base.PreParse();
        }