rendered paste bodyusing System.Configuration;
using Vortex.Utils.Querys;
using System.Web;
using System.Data.SqlClient;
public class Config
{
public static readonly string Servidor;
public static readonly string DataBase:
static QueryHelper queryHelper;
public static QueryHelper GetQueryHelper() {
return queryHelper;
}
static Config() {
Servidor = ConfigurationSettings.AppSettings.Get("Servidor");
DataBase = ConfigurationSettings.AppSettings.Get("BasedeDatos");
QueryContext queryContext;
queryContext = New QueryContext(GetType(SqlCommand), GetType(SqlParameter), GetType(SqlDataAdapter));
string url = HttpContext.Current.Server.MapPath("./") & ConfigurationSettings.AppSettings.Get("QuerysDefinition");
queryHelper = New QueryHelper(url, queryContext);
}
}