示例#1
0
        public string CreateSql <T>(object obj)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("select * from ");
            sb.Append(typeof(T).Name);
            sb.Append(" where ");
            sb.Append(CommonFunc.GetSql <T>(obj));
            return(sb.ToString());
        }
示例#2
0
 public string CreateSql <T>(List <T> t)
 {
     return(CommonFunc.GetSql <T>(t, this));
 }