/// <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)); }
/// <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))); }
/// <summary> /// 插入 /// </summary> /// <param name="sql"></param> /// <returns></returns> public object Insert(string sql) { return(this.Insert(sql, EasyDecoratedTextDaoHelper.SelectSqlTag(sql, this.dao))); }
/// <summary> /// 更新 /// </summary> /// <param name="sql"></param> /// <returns></returns> public int Update(string sql) { return(this.Update(sql, EasyDecoratedTextDaoHelper.SelectSqlTag(sql, this.dao))); }
/// <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))); }
/// <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))); }