예제 #1
0
 /// <summary>
 /// 执行方法
 /// </summary>
 /// <param name="sql"></param>
 /// <param name="callmode"></param>
 /// <returns></returns>
 public object Call(string sql, CallMode callmode)
 {
     return(this.Call(sql, EasyDecoratedTextDaoHelper.SelectSqlTag(sql, this.dao), callmode));
 }
예제 #2
0
 /// <summary>
 /// 插入
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="sql"></param>
 /// <returns></returns>
 public T Insert <T>(string sql)
 {
     return((T)this.Insert(sql, EasyDecoratedTextDaoHelper.SelectSqlTag(sql, this.dao)));
 }
예제 #3
0
 /// <summary>
 /// 插入
 /// </summary>
 /// <param name="sql"></param>
 /// <returns></returns>
 public object Insert(string sql)
 {
     return(this.Insert(sql, EasyDecoratedTextDaoHelper.SelectSqlTag(sql, this.dao)));
 }
예제 #4
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="sql"></param>
 /// <returns></returns>
 public int Update(string sql)
 {
     return(this.Update(sql, EasyDecoratedTextDaoHelper.SelectSqlTag(sql, this.dao)));
 }
예제 #5
0
 /// <summary>
 /// 查询可列举的
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="sql"></param>
 /// <returns></returns>
 public IEnumerable <T> QueryForEnumerable <T>(string sql)
 {
     return(this.QueryForEnumerable <T>(sql, EasyDecoratedTextDaoHelper.SelectSqlTag(sql, this.dao)));
 }
예제 #6
0
 /// <summary>
 /// 查询某一行
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="sql"></param>
 /// <returns></returns>
 public T QueryForObject <T>(string sql)
 {
     return(this.QueryForObject <T>(sql, EasyDecoratedTextDaoHelper.SelectSqlTag(sql, this.dao)));
 }