Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public static void LogCommandExecution(DbCommand command, DataService dataService, TimeSpan executionTime)
 {
     if (Current != null)
     {
         Current.LogCommandExecution(command, dataService, executionTime);
     }
 }