コード例 #1
0
        private void Initialize(DeleteTestEntityInputDto entity, EntityDependency[] dependencies)
        {
            RegisterCommandRepositoryFactory <TestEntity>(() => new TestEntityCommandRepository());

            RootEntity = new TestEntity
            {
                Id = entity.TestEntityId
            };

            Enqueue(new DeleteEntityCommandOperation <TestEntity>(RootEntity, dependencies));
        }
コード例 #2
0
 public DeleteTestEntityCommandAggregate(DeleteTestEntityInputDto entity, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(EntityWithMultiValuedValueObjectConnectionClass.GetConnectionName()))
 {
     Initialize(entity, dependencies);
 }