示例#1
0
        public Generic2C()
        {
            Type t = typeof(Generic <T>);

            dal = DataAccessGeneric <T> .CreateSession(t.FullName);

            t       = typeof(Generic <TDesc>);
            dalDesc = DataAccessGeneric <TDesc> .CreateSession(t.FullName);
        }
示例#2
0
        public UploadImageBLL()
        {
            Type t = typeof(Cb.SQLServerDAL.Generic <PNK_UploadImage>);

            dal = DataAccessGeneric <PNK_UploadImage> .CreateSession(t.FullName);

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

            case "MySQL":
                prefixParam = "v_";
                break;
            }
        }
示例#3
0
        public XMLConfigBLL()
        {
            Type t = typeof(Cb.SQLServerDAL.Generic <sd_XML>);

            generic = DataAccessGeneric <sd_XML> .CreateSession(t.FullName);
        }
示例#4
0
        public Generic()
        {
            Type t = typeof(Cb.SQLServerDAL.Generic <T>);

            dal = DataAccessGeneric <T> .CreateSession(t.FullName);
        }