Esempio n. 1
0
        public void SendCommand <TCommand>() where TCommand : ICommand, new()
        {
            var command = new TCommand();

            command.SetArchitecture(this);
            command.Execute();
        }
Esempio n. 2
0
        public T ExecuteCommand <TCommand, T>() where TCommand : SqlCommand, new()
        {
            var command = new TCommand();

            command.SetUnitOfWork();

            return(command.Execute <T>());
        }
Esempio n. 3
0
        public void Execute <TCommand>() where TCommand : class, ICommand, new()
        {
            var command = new TCommand();

            command.Execute();
        }