コード例 #1
0
        public void SendCommand <TCommand>() where TCommand : ICommand, new()
        {
            var command = new TCommand();

            command.SetArchitecture(this);
            command.Execute();
        }
コード例 #2
0
ファイル: SqlRepository.cs プロジェクト: cbayles/Siege
        public T ExecuteCommand <TCommand, T>() where TCommand : SqlCommand, new()
        {
            var command = new TCommand();

            command.SetUnitOfWork();

            return(command.Execute <T>());
        }
コード例 #3
0
        public void Execute <TCommand>() where TCommand : class, ICommand, new()
        {
            var command = new TCommand();

            command.Execute();
        }