Beispiel #1
0
        private string GetSystemEngineProvider()
        {
            //string xtensiveProvider = this.connectionInfo.InternalInfo.Provider;
            //var mapping = ProtocolMappings[this.connectionInfo.StorageEngineKey];
            StorageEngineAdoNetMapping mapping = GetProtocolMapping(this.connectionInfo.StorageEngine);
            var adoNetInvariantName            = mapping.AdoNetKey;

            return(DBEngineUtils.GetSystemDBProviders().SingleOrDefault(
                       dbEngineName => Util.StringEqual(dbEngineName, adoNetInvariantName, true)));
        }
Beispiel #2
0
        public override bool EqualsTo(StorageEngine other)
        {
            bool equalsTo = base.EqualsTo(other);

            if (equalsTo)
            {
                StorageEngineAdoNetMapping otherEngine = other as StorageEngineAdoNetMapping;
                equalsTo = otherEngine != null;
                if (equalsTo)
                {
                    equalsTo = Util.StringEqual(this.AdoNetKey, otherEngine.AdoNetKey, true);
                }
            }

            return(equalsTo);
        }