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