Exemplo n.º 1
0
        /// <summary>
        /// This method is used to get the connection string fronm the configuration file.
        /// </summary>
        /// <returns>Returns connection string.</returns>
        private string GetConnectionString()
        {
            var    model      = new ConnectionSettingsModel();
            var    settings   = model.GetSettings();
            string connection = string.Empty;

            if (settings != null)
            {
                connection = settings.ConnectionString;
            }

            return(connection);
        }