private List <Join> GetJoins(TflRelationship r, Entity leftEntity, Entity rightEntity) { if (string.IsNullOrEmpty(r.LeftField)) { return(( from TflJoin j in r.Join select GetJoin(leftEntity, j.LeftField, rightEntity, j.RightField) ).ToList()); } // if it's a single field join, you can use leftField and rightField on the relationship element return(new List <Join> { GetJoin(leftEntity, r.LeftField, rightEntity, r.RightField) }); }
public RelationshipBuilder(ProcessBuilder processBuilder, TflRelationship relationship) { _processBuilder = processBuilder; _relationship = relationship; }
public RelationshipBuilder Relationship() { var relationship = new TflRelationship().WithDefaults(); _process.Relationships.Add(relationship); return new RelationshipBuilder(this, relationship); }