예제 #1
0
 public Parent(RelationName name) => Name = name;
예제 #2
0
 public Child(RelationName name, Id parent)
 {
     Name   = name;
     Parent = parent;
 }
예제 #3
0
 public static JoinField Root(RelationName parent) => new Parent(parent);
예제 #4
0
 public static JoinField Link(RelationName child, Id parentId) => new Child(child, parentId);
예제 #5
0
 public string Resolve(RelationName t) => t?.Name ?? ResolveType(t?.Type);
예제 #6
0
 /// <summary>
 /// Helper method to easily filter on join relations
 /// </summary>
 public QueryContainer HasRelationName(Expression <Func <T, JoinField> > field, RelationName value) =>
 Term(t => t.Field(field).Value(value));
예제 #7
0
 public ParentIdQueryDescriptor <T> Type(RelationName type) => Assign(type, (a, v) => a.Type = v);
예제 #8
0
 public JoinAttribute(RelationName parent, RelationName child, params RelationName[] moreChildren) : base(FieldType.Join) =>
예제 #9
0
 public ParentAggregation(string name, RelationName type) : base(name) => Type = type;
예제 #10
0
 public string RelationName(RelationName type) => RelationNameResolver.Resolve(type);
예제 #11
0
 public ChildrenAggregation(string name, RelationName type) : base(name) => Type = type;