private void Initialize(DeleteOlderLogsInputDto log, EntityDependency[] dependencies) { RegisterCommandRepositoryFactory <SimpleLog>(() => new SimpleLogCommandRepository()); RootEntity = new SimpleLog { When = log.When }; Enqueue(new DeleteEntityCommandOperation <SimpleLog>(RootEntity, null, "DeleteOlderLogs")); }
public DeleteOlderLogsCommandAggregate(DeleteOlderLogsInputDto log, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(SimpleLogsConnectionClass.GetConnectionName())) { Initialize(log, dependencies); }