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; } }
public Generic2C() { Type t = typeof(Cb.SQLServerDAL.Generic2C <T, TDesc>); dalDesc = DataAccessGeneric2C <T, TDesc> .CreateSession(t.FullName); }