Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sqlcmd"></param>
        /// <param name="group_name"></param>
        /// <param name="key"></param>
        public void AsyncExcute(SQLCommandBase sqlcmd, string group_name = null, string key = null)
        {
            string sql = sqlcmd.GetSQL();

            if (string.IsNullOrWhiteSpace(sql))
            {
                throw new Exception("sql can't be empty");
            }
            AsyncExcute(sql, group_name ?? sqlcmd.GetGroup(), key);
        }
Example #2
0
 public void AsyncQuery(SQLCommandBase sql, Action <DataSet> callback, string groupName = null, DateTime priority = default(DateTime))
 {
     AsyncQuery(sql.GetSQL(), callback, groupName == null ? sql.GetGroup() : groupName, priority);
 }