public override ISqlBuilder CreateSqlBuilder(BaseQueueManger queueManger, Queue queue)
 {
     switch (queueManger.ContextMap.ContextProperty.DataVer)
     {
         case "2000": return new SqlBuilder2000(queueManger, queue);
     }
     return new SqlBuilder(queueManger, queue);
 }
Exemple #2
0
 /// <summary>
 /// 复制条件
 /// </summary>
 /// <param name="queue">队列</param>
 internal void Copy(Queue queue)
 {
     ID = queue.ID;
     Index = queue.Index;
     ContextProvider = queue.ContextProvider;
     ExpBuilder = queue.ExpBuilder;
     SqlBuilder = ContextProvider.DbProvider.CreateSqlBuilder(ContextProvider.Map.ContextProperty.DataVer, ExpBuilder, Name);
 }
Exemple #3
0
 /// <summary>
 /// 复制条件
 /// </summary>
 /// <param name="queue">队列</param>
 internal void Copy(Queue queue)
 {
     ID = queue.ID;
     Index = queue.Index;
     ContextProvider = queue.ContextProvider;
     _expBuilder = queue.ExpBuilder;
     //_sqlBuilder = queue.SqlBuilder;
     //_procBuilder = queue.ProcBuilder;
 }
 public ExpressionBool(BaseQueueManger queueManger, Queue queue) : base(queueManger, queue) { }
 public override ISqlBuilder CreateSqlBuilder(BaseQueueManger queueManger, Queue queue)
 {
     return new SqlBuilder(queueManger, queue);
 }
 public SqlBuilder2000(BaseQueueManger queueManger, Queue queue) : base(queueManger, queue) { }
Exemple #7
0
 /// <summary>
 /// 创建SQL查询
 /// </summary>
 /// <param name="queueManger">队列管理模块</param>
 /// <param name="queue">包含数据库SQL操作的队列</param>
 public abstract ISqlBuilder CreateSqlBuilder(BaseQueueManger queueManger, Queue queue);