Exemplo n.º 1
0
        private DatabaseEngineEdition GetOrReadCachedEngineEdition(IDbConnection conn)
        {
            if (CachedServerInfo.Instance.TryGetEngineEdition(conn, out _engineEdition) == DatabaseEngineEdition.Unknown)
            {
                _engineEdition = ReliableConnectionHelper.GetEngineEdition(conn);
                CachedServerInfo.Instance.AddOrUpdateEngineEdition(conn, _engineEdition);
            }

            return(_engineEdition);
        }