|
@@ -74,17 +74,18 @@ namespace Comal.Classes
|
|
|
[EditorSequence("Advanced", 5)]
|
|
[EditorSequence("Advanced", 5)]
|
|
|
public DateTime Retired { get; set; }
|
|
public DateTime Retired { get; set; }
|
|
|
|
|
|
|
|
- /*[Aggregate(typeof(JobDocumentSetCurrentAggregate))]
|
|
|
|
|
- public DateTime Current { get; set; }*/
|
|
|
|
|
|
|
+ [ChildEntity(typeof(JobDocumentSetCurrentMileStone))]
|
|
|
|
|
+ public LightJobDocumentSetMileStoneLink CurrentMileStone { get; set; }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /*
|
|
|
|
|
- public class JobDocumentSetCurrentAggregate : CoreAggregate<JobDocumentSet, JobDocumentSetMileStone, DateTime>
|
|
|
|
|
|
|
+ public class JobDocumentSetCurrentMileStone : IChildEntityDefinition<JobDocumentSetMileStone>
|
|
|
{
|
|
{
|
|
|
- public override Expression<Func<JobDocumentSetMileStone, DateTime>> Aggregate => x => x.Date;
|
|
|
|
|
|
|
+ public Filter<JobDocumentSetMileStone>? Filter { get; set; } = null;
|
|
|
|
|
|
|
|
- public override Dictionary<Expression<Func<JobDocumentSetMileStone, object>>, Expression<Func<JobDocumentSet, object>>> Links => throw new NotImplementedException();
|
|
|
|
|
|
|
+ public SortOrder<JobDocumentSetMileStone>? Sort { get; set; }
|
|
|
|
|
+ = new SortOrder<JobDocumentSetMileStone>(x => x.Type.Sequence, SortDirection.Descending).ThenBy(x => x.Created);
|
|
|
|
|
+
|
|
|
|
|
+ public Expression<Func<JobDocumentSetMileStone, Guid>> Parent => x => x.DocumentSet.ID;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- public override AggregateCalculation Calculation => throw new NotImplementedException();
|
|
|
|
|
- }*/
|
|
|
|
|
}
|
|
}
|