public TemplatedCommand(DataService dataService, ISqlTemplate template)
     : base(dataService, true)
 {
     if (dataService == null) throw new ArgumentNullException("dataService");
     if (template == null) throw new ArgumentNullException("template");
     this.Template = template;
 }
Beispiel #2
0
 public static void LogCommandExecution(DbCommand command, DataService dataService, TimeSpan executionTime)
 {
     if (Current != null)
     {
         Current.LogCommandExecution(command, dataService, executionTime);
     }
 }