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