All pastes #296203 Raw Edit

Someone

public text v1 · immutable
#296203 ·published 2006-12-30 00:36 UTC
rendered paste body
using 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);
    }
}