|
@@ -8,27 +8,20 @@ using System.Threading.Tasks;
|
|
|
|
|
|
namespace InABox.DynamicGrid
|
|
|
{
|
|
|
- public class DynamicCrossJoinGrid<TEntity, TLeft> : DynamicDataGrid<TEntity>
|
|
|
+ public abstract class DynamicCrossJoinGrid<TEntity, TLeft> : DynamicDataGrid<TEntity>
|
|
|
where TEntity : Entity, IRemotable, IPersistent, new()
|
|
|
where TLeft : Entity
|
|
|
{
|
|
|
|
|
|
public TLeft? Left { get; set; }
|
|
|
- public Expression<Func<TEntity, Guid>>? LeftMapping { get; init; }
|
|
|
- public Expression<Func<TLeft, Guid>>? LeftProperty { get; init; }
|
|
|
+ public abstract Expression<Func<TEntity, Guid>> LeftMapping { get; }
|
|
|
+ public abstract Expression<Func<TLeft, Guid>> LeftProperty { get; }
|
|
|
|
|
|
public DynamicCrossJoinGrid()
|
|
|
{
|
|
|
Options.BeginUpdate().Clear().Add(DynamicGridOption.SelectColumns).EndUpdate();
|
|
|
}
|
|
|
|
|
|
- public DynamicCrossJoinGrid(TLeft left, Expression<Func<TEntity, Guid>> leftMapping, Expression<Func<TLeft, Guid>> leftProperty)
|
|
|
- {
|
|
|
- Left = left;
|
|
|
- LeftMapping = leftMapping;
|
|
|
- LeftProperty = leftProperty;
|
|
|
- }
|
|
|
-
|
|
|
protected override void GenerateColumns(DynamicGridColumns columns)
|
|
|
{
|
|
|
base.GenerateColumns(columns);
|