public void SendCommand <TCommand>() where TCommand : ICommand, new() { var command = new TCommand(); command.SetArchitecture(this); command.Execute(); }
public T ExecuteCommand <TCommand, T>() where TCommand : SqlCommand, new() { var command = new TCommand(); command.SetUnitOfWork(); return(command.Execute <T>()); }
public void Execute <TCommand>() where TCommand : class, ICommand, new() { var command = new TCommand(); command.Execute(); }