Ejemplo n.º 1
0
        /// <summary>
        /// Gets the name of the current database provider.
        /// </summary>
        /// <returns>Returns the current database provider name.</returns>
        public static string GetCurrentProviderName()
        {
            HelperConfigInfo config = HelperConfigInfo.Instance;

            return(config.Provider);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the current connection string.
        /// </summary>
        /// <returns>Returns the current connection string used to talk to the relational database.</returns>
        public static string GetCurrentConnectionString()
        {
            HelperConfigInfo config = HelperConfigInfo.Instance;

            return(config.ConnectionString);
        }