コード例 #1
0
        private void Initialize(DeleteBookInputDto book, EntityDependency[] dependencies)
        {
            RegisterCommandRepositoryFactory <Book>(() => new BookCommandRepository());

            RootEntity = new Book
            {
                Id = book.BookId
            };

            Enqueue(new DeleteEntityCommandOperation <Book>(RootEntity, dependencies));
        }
コード例 #2
0
 public DeleteBookCommandAggregate(DeleteBookInputDto book, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(BookWithPagesConnectionClass.GetConnectionName()))
 {
     Initialize(book, dependencies);
 }