Exemplo n.º 1
0
        private void Initialize(DeleteOlderLogsInputDto log, EntityDependency[] dependencies)
        {
            RegisterCommandRepositoryFactory <SimpleLog>(() => new SimpleLogCommandRepository());

            RootEntity = new SimpleLog
            {
                When = log.When
            };

            Enqueue(new DeleteEntityCommandOperation <SimpleLog>(RootEntity, null, "DeleteOlderLogs"));
        }
Exemplo n.º 2
0
 public DeleteOlderLogsCommandAggregate(DeleteOlderLogsInputDto log, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(SimpleLogsConnectionClass.GetConnectionName()))
 {
     Initialize(log, dependencies);
 }