Beispiel #1
0
        void ISqlTaskProcessor.ProcessTask(SqlLoadTask task, CommandProcessorContext context)
        {
            var part = Factory.CreateQueryPart(task, GetParameterPrefix(context));

            context.ActiveCommand.AddPart(part);
            context.ActiveTasks.Add(task);
        }
Beispiel #2
0
        void ISqlTaskProcessor.ProcessTask(SqlLoadTask task, CommandProcessorContext context)
        {
            var part = Factory.CreateQueryPart(task, GetParameterPrefix(context));

            if (PendCommandPart(context.ActiveCommand, part))
            {
                return;
            }
            context.ActiveCommand.AddPart(part);
            context.ActiveTasks.Add(task);
            context.CurrentTask = null;
        }
Beispiel #3
0
 public CommandPart CreateQueryPart(SqlLoadTask task, string parameterNamePrefix)
 {
     return(CreateQueryPart(task.Request, parameterNamePrefix, task.ParameterContext));
 }
Beispiel #4
0
 public CommandPart CreateQueryPart(SqlLoadTask task)
 {
     return(CreateQueryPart(task.Request, DefaultParameterNamePrefix, task.ParameterContext));
 }