Beispiel #1
0
 public static SQLDALProForNiugu getInstance(DataTable dt, string projName, string classname, string entityName)
 {
     // if (instance == null)
     {
         instance = new SQLDALProForNiugu(dt, projName, entityName);
     }
     return(instance);
 }
Beispiel #2
0
        public static string GenerateDAL(DataTable dt, string projName, string entityName)
        {
            if (dt == null || dt.Rows.Count == 0)
            {
                return("");
            }
            //BizDAL dal = new BizDAL(dt, projName, entityName);
            //SQLDALPro dal = new SQLDALPro(dt, projName, entityName);
            //SqlParamsDAL dal = new SqlParamsDAL(dt, projName, entityName);
            SQLDALProForNiugu dal = new SQLDALProForNiugu(dt, projName, entityName);

            return(dal.CreateDAL());
        }