Beispiel #1
0
        private void Initialize(PreRequisiteInputDto preRequisite, EntityDependency[] dependencies)
        {
            RegisterCommandRepositoryFactory <PreRequisite>(() => new PreRequisiteCommandRepository());

            RootEntity = new PreRequisite
            {
                Id = new PreRequisiteId
                {
                    Requires_CourseId     = preRequisite.Requires_CourseId,
                    IsRequiredBy_CourseId = preRequisite.IsRequiredBy_CourseId
                }
            };

            Enqueue(new InsertEntityCommandOperation <PreRequisite>(RootEntity, dependencies));
        }
Beispiel #2
0
 public CreatePreRequisiteCommandAggregate(PreRequisiteInputDto preRequisite, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(CourseWithPreRequisitesAndRelatedConnectionClass.GetConnectionName()))
 {
     Initialize(preRequisite, dependencies);
 }