Ejemplo n.º 1
0
        private void AddExecuteOjbect(IDbExecute execute, bool concurrency, Func <CPQuery, bool> funcBefore)
        {
            if (execute == null)
            {
                throw new ArgumentNullException("execute");
            }

            DBExecuteInfo info = new DBExecuteInfo();

            info.DBExecute   = execute;
            info.Concurrency = concurrency;
            info.FuncBefore  = funcBefore;

            _list.Add(info);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 向工作单元中提交一个IDbExecute对象,用于延迟提交。
 /// </summary>
 /// <param name="execute"></param>
 public void AddExecuteOjbect(IDbExecute execute)
 {
     AddExecuteOjbect(execute, false, null);
 }