private XmlReader GetStoreSchemaDescription(string informationType)
 {
     if (EFOracleVersionUtils.IsVersionX(this._version))
     {
         return(EFOracleProviderManifest.GetOMDPStoreSchemaDescription(informationType));
     }
     return((XmlReader)null);
 }
 private static XmlReader GetProviderManifest()
 {
     if (EFOracleVersionUtils.GetStorageVersion(EFOracleProviderServices.versionHint_static) >= EFOracleVersion.Oracle12cR1)
     {
         return(EFOracleProviderManifest.GetXmlResource("Oracle.ManagedDataAccess.EntityFramework.Resources.EFOracleProviderManifest_12c_or_later.xml"));
     }
     return(EFOracleProviderManifest.GetXmlResource("Oracle.ManagedDataAccess.EntityFramework.Resources.EFOracleProviderManifest.xml"));
 }
        private XmlReader GetStoreSchemaMapping(string informationType)
        {
            string resourceName = (string)null;

            if (informationType == "StoreSchemaMapping")
            {
                resourceName = "Oracle.ManagedDataAccess.EntityFramework.Resources.EFOracleStoreSchemaMapping.msl";
            }
            else if (informationType == "StoreSchemaMappingVersion3")
            {
                resourceName = "Oracle.ManagedDataAccess.EntityFramework.Resources.EFOracleStoreSchemaMappingVersion3.msl";
            }
            return(EFOracleProviderManifest.GetXmlResource(resourceName));
        }
        public EFOracleProviderManifest(string manifestToken)
            : base(EFOracleProviderManifest.GetProviderManifest())
        {
            if (EFProviderSettings.s_tracingEnabled)
            {
                EFProviderSettings.Instance.Trace(EFProviderSettings.EFTraceLevel.Entry, " (ENTRY) EFOracleProviderManifest::EFOracleProviderManifest()\n");
            }
            this._version = EFOracleVersionUtils.GetStorageVersion(manifestToken);
            this._token   = manifestToken;
            ODTSettings.FireEdmInUseEvent();
            EFOracleProviderManifest.m_bMapNumberToBoolean = false;
            int maxPrecision1;

            if ((maxPrecision1 = EFProviderSettings.Instance.GetMaxPrecision("BOOL", true)) > 0)
            {
                EFOracleProviderManifest.m_edmMappingMaxBOOL   = maxPrecision1;
                EFOracleProviderManifest.m_bMapNumberToBoolean = true;
            }
            else
            {
                EFOracleProviderManifest.m_edmMappingMaxBOOL = 1;
            }
            EFOracleProviderManifest.m_bMapNumberToByte = false;
            int maxPrecision2;

            if ((maxPrecision2 = EFProviderSettings.Instance.GetMaxPrecision("BYTE", true)) > 0)
            {
                EFOracleProviderManifest.m_edmMappingMaxBYTE = maxPrecision2;
                EFOracleProviderManifest.m_bMapNumberToByte  = true;
            }
            else
            {
                EFOracleProviderManifest.m_edmMappingMaxBYTE = 3;
            }
            int maxPrecision3;

            EFOracleProviderManifest.m_edmMappingMaxINT16 = (maxPrecision3 = EFProviderSettings.Instance.GetMaxPrecision("INT16", true)) <= 0 ? 5 : maxPrecision3;
            int maxPrecision4;

            EFOracleProviderManifest.m_edmMappingMaxINT32 = (maxPrecision4 = EFProviderSettings.Instance.GetMaxPrecision("INT32", true)) <= 0 ? 10 : maxPrecision4;
            int maxPrecision5;

            EFOracleProviderManifest.m_edmMappingMaxINT64 = (maxPrecision5 = EFProviderSettings.Instance.GetMaxPrecision("INT64", true)) <= 0 ? 19 : maxPrecision5;
            if (!EFProviderSettings.s_tracingEnabled)
            {
                return;
            }
            EFProviderSettings.Instance.Trace(EFProviderSettings.EFTraceLevel.Entry, " (EXIT)  EFOracleProviderManifest::EFOracleProviderManifest()\n");
        }
        public override string EscapeLikeArgument(string argument)
        {
            bool usedEscapeChar;

            return(EFOracleProviderManifest.EscapeLikeText(argument, true, out usedEscapeChar));
        }