コード例 #1
0
        private void Initialize(DeleteApplicationLogsInputDto log, EntityDependency[] dependencies)
        {
            RegisterCommandRepositoryFactory <ApplicationLog>(() => new ApplicationLogCommandRepository());

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

            Enqueue(new DeleteEntityCommandOperation <ApplicationLog>(RootEntity, null, "DeleteOlderLogs"));
        }
コード例 #2
0
 public DeleteApplicationLogsCommandAggregate(DeleteApplicationLogsInputDto log, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(ApplicationLogsConnectionClass.GetConnectionName()))
 {
     Initialize(log, dependencies);
 }