コード例 #1
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "EntityType"))
     {
         this.HandleEntityTypeAttribute(reader);
         return(true);
     }
     if (this.Schema.DataModel == SchemaDataModelOption.ProviderDataModel)
     {
         if (SchemaElement.CanHandleAttribute(reader, "Schema"))
         {
             this.HandleDbSchemaAttribute(reader);
             return(true);
         }
         if (SchemaElement.CanHandleAttribute(reader, "Table"))
         {
             this.HandleTableAttribute(reader);
             return(true);
         }
     }
     return(false);
 }
コード例 #2
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Minimum"))
     {
         this.HandleMinimumAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Maximum"))
     {
         this.HandleMaximumAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "DefaultValue"))
     {
         this.HandleDefaultAttribute(reader);
         return(true);
     }
     if (!SchemaElement.CanHandleAttribute(reader, "Constant"))
     {
         return(false);
     }
     this.HandleConstantAttribute(reader);
     return(true);
 }
コード例 #3
0
 protected virtual bool HandleAttribute(XmlReader reader)
 {
     if (!SchemaElement.CanHandleAttribute(reader, "Name"))
     {
         return(false);
     }
     this.HandleNameAttribute(reader);
     return(true);
 }
コード例 #4
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (!SchemaElement.CanHandleAttribute(reader, "Role"))
     {
         return(false);
     }
     this.HandleRoleAttribute(reader);
     return(true);
 }
コード例 #5
0
        protected override bool HandleAttribute(XmlReader reader)
        {
            bool flag = base.HandleAttribute(reader);

            if (!flag && (flag = SchemaElement.CanHandleAttribute(reader, "Value")))
            {
                this.HandleValueAttribute(reader);
            }
            return(flag);
        }
コード例 #6
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (!SchemaElement.CanHandleAttribute(reader, "Action"))
     {
         return(false);
     }
     this.HandleActionAttribute(reader);
     return(true);
 }
コード例 #7
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (!SchemaElement.CanHandleAttribute(reader, "PrimitiveTypeKind"))
     {
         return(false);
     }
     this.HandlePrimitiveTypeKindAttribute(reader);
     return(true);
 }
コード例 #8
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (!SchemaElement.CanHandleAttribute(reader, "Association"))
     {
         return(false);
     }
     this.HandleRelationshipTypeNameAttribute(reader);
     return(true);
 }
コード例 #9
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "ReturnType"))
     {
         this.HandleReturnTypeAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Aggregate"))
     {
         this.HandleAggregateAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "BuiltIn"))
     {
         this.HandleBuiltInAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "StoreFunctionName"))
     {
         this.HandleStoreFunctionNameAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "NiladicFunction"))
     {
         this.HandleNiladicFunctionAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "IsComposable"))
     {
         this.HandleIsComposableAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "ParameterTypeSemantics"))
     {
         this.HandleParameterTypeSemanticsAttribute(reader);
         return(true);
     }
     if (!SchemaElement.CanHandleAttribute(reader, "Schema"))
     {
         return(false);
     }
     this.HandleDbSchemaAttribute(reader);
     return(true);
 }
コード例 #10
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "BaseType"))
     {
         this.HandleBaseTypeAttribute(reader);
         return(true);
     }
     if (!SchemaElement.CanHandleAttribute(reader, "Abstract"))
     {
         return(false);
     }
     this.HandleAbstractAttribute(reader);
     return(true);
 }
コード例 #11
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Type"))
     {
         this.HandleTypeAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "CollectionKind"))
     {
         this.HandleCollectionKindAttribute(reader);
         return(true);
     }
     return(this._typeUsageBuilder.HandleAttribute(reader));
 }
コード例 #12
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Namespace"))
     {
         this.HandleNamespaceAttribute(reader);
         return(true);
     }
     if (!SchemaElement.CanHandleAttribute(reader, "Alias"))
     {
         return(false);
     }
     this.HandleAliasAttribute(reader);
     return(true);
 }
コード例 #13
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (!base.HandleAttribute(reader))
     {
         if (SchemaElement.CanHandleAttribute(reader, "IsFlags"))
         {
             this.HandleBoolAttribute(reader, ref this._isFlags);
         }
         else
         {
             if (!SchemaElement.CanHandleAttribute(reader, "UnderlyingType"))
             {
                 return(false);
             }
             Utils.GetDottedName(this.Schema, reader, out this._unresolvedUnderlyingTypeName);
         }
     }
     return(true);
 }
コード例 #14
0
        protected override bool HandleAttribute(XmlReader reader)
        {
            if (base.HandleAttribute(reader))
            {
                return(true);
            }
            if (SchemaElement.CanHandleAttribute(reader, "EntitySet"))
            {
                string str;
                if (Utils.GetString(this.Schema, reader, out str))
                {
                    this._unresolvedEntitySet = str;
                }
                return(true);
            }
            if (SchemaElement.CanHandleAttribute(reader, "EntitySetPath"))
            {
                string str;
                if (Utils.GetString(this.Schema, reader, out str))
                {
                    this._entitySetPathDefined = true;
                }
                return(true);
            }
            if (SchemaElement.CanHandleAttribute(reader, "IsBindable"))
            {
                return(true);
            }
            if (!SchemaElement.CanHandleAttribute(reader, "IsSideEffecting"))
            {
                return(false);
            }
            bool field = true;

            if (this.HandleBoolAttribute(reader, ref field))
            {
                this._isSideEffecting = new bool?(field);
            }
            return(true);
        }
コード例 #15
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Multiplicity"))
     {
         this.HandleMultiplicityAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Role"))
     {
         this.HandleNameAttribute(reader);
         return(true);
     }
     if (!SchemaElement.CanHandleAttribute(reader, "Type"))
     {
         return(false);
     }
     this.HandleTypeAttribute(reader);
     return(true);
 }
コード例 #16
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Relationship"))
     {
         this.HandleAssociationAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "FromRole"))
     {
         this.HandleFromRoleAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "ToRole"))
     {
         this.HandleToRoleAttribute(reader);
         return(true);
     }
     return(SchemaElement.CanHandleAttribute(reader, "ContainsTarget"));
 }
コード例 #17
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Type"))
     {
         this.HandleTypeAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "EntitySet"))
     {
         this.HandleEntitySetAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "EntitySetPath"))
     {
         this.HandleEntitySetPathAttribute(reader);
         return(true);
     }
     return(this._typeUsageBuilder.HandleAttribute(reader));
 }
コード例 #18
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     if (this._depth == 1)
     {
         return(false);
     }
     if (base.HandleAttribute(reader))
     {
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Alias"))
     {
         this.HandleAliasAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Namespace"))
     {
         this.HandleNamespaceAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Provider"))
     {
         this.HandleProviderAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "ProviderManifestToken"))
     {
         this.HandleProviderManifestTokenAttribute(reader);
         return(true);
     }
     if (!(reader.NamespaceURI == "http://schemas.microsoft.com/ado/2009/02/edm/annotation") || !(reader.LocalName == "UseStrongSpatialTypes"))
     {
         return(false);
     }
     this.HandleUseStrongSpatialTypesAnnotation(reader);
     return(true);
 }
コード例 #19
0
 protected override bool HandleAttribute(XmlReader reader)
 {
     return(base.HandleAttribute(reader) || SchemaElement.CanHandleAttribute(reader, "OpenType") && this.Schema.DataModel == SchemaDataModelOption.EntityDataModel);
 }
コード例 #20
0
        private bool InternalHandleAttribute(XmlReader reader)
        {
            if (SchemaElement.CanHandleAttribute(reader, DbProviderManifest.NullableFacetName))
            {
                HandleNullableAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, XmlConstants.DefaultValueAttribute))
            {
                HandleDefaultAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, DbProviderManifest.PrecisionFacetName))
            {
                HandlePrecisionAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, DbProviderManifest.ScaleFacetName))
            {
                HandleScaleAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, EdmProviderManifest.StoreGeneratedPatternFacetName))
            {
                HandleStoreGeneratedPatternAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, EdmProviderManifest.ConcurrencyModeFacetName))
            {
                HandleConcurrencyModeAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, DbProviderManifest.MaxLengthFacetName))
            {
                HandleMaxLengthAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, DbProviderManifest.UnicodeFacetName))
            {
                HandleUnicodeAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, DbProviderManifest.CollationFacetName))
            {
                HandleCollationAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, DbProviderManifest.FixedLengthFacetName))
            {
                HandleIsFixedLengthAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, DbProviderManifest.NullableFacetName))
            {
                HandleNullableAttribute(reader);
                return(true);
            }
            else if (SchemaElement.CanHandleAttribute(reader, DbProviderManifest.SridFacetName))
            {
                HandleSridAttribute(reader);
                return(true);
            }

            return(false);
        }
コード例 #21
0
 private bool InternalHandleAttribute(XmlReader reader)
 {
     if (SchemaElement.CanHandleAttribute(reader, "Nullable"))
     {
         this.HandleNullableAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "DefaultValue"))
     {
         this.HandleDefaultAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Precision"))
     {
         this.HandlePrecisionAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Scale"))
     {
         this.HandleScaleAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "StoreGeneratedPattern"))
     {
         this.HandleStoreGeneratedPatternAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "ConcurrencyMode"))
     {
         this.HandleConcurrencyModeAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "MaxLength"))
     {
         this.HandleMaxLengthAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Unicode"))
     {
         this.HandleUnicodeAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Collation"))
     {
         this.HandleCollationAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "FixedLength"))
     {
         this.HandleIsFixedLengthAttribute(reader);
         return(true);
     }
     if (SchemaElement.CanHandleAttribute(reader, "Nullable"))
     {
         this.HandleNullableAttribute(reader);
         return(true);
     }
     if (!SchemaElement.CanHandleAttribute(reader, "SRID"))
     {
         return(false);
     }
     this.HandleSridAttribute(reader);
     return(true);
 }