Ejemplo n.º 1
0
        public ProductTypeBLL()
        {
            Type t = typeof(Cb.SQLServerDAL.Generic2C <PNK_ProductType, PNK_ProductTypeDesc>);

            dal_2C = DataAccessGeneric2C <PNK_ProductType, PNK_ProductTypeDesc> .CreateSession(t.FullName);

            switch (ConfigurationManager.AppSettings["Database"])
            {
            case "SQLServer":
                prefixParam = "@";
                break;

            case "MySQL":
                prefixParam = "v_";
                break;
            }
        }
Ejemplo n.º 2
0
        public Generic2C()
        {
            Type t = typeof(Cb.SQLServerDAL.Generic2C <T, TDesc>);

            dalDesc = DataAccessGeneric2C <T, TDesc> .CreateSession(t.FullName);
        }