public IQueryOver <TEntity> RightJoin <TOther>(Expression <Func <TEntity, object> > entity, Expression <Func <TOther, object> > other) where TOther : class, new() { var action = new RightJoinAction <TEntity, TOther>(_metadatastore); action.Enqueue(entity, other); _queryDefinition.AddJoin(action); return(this); }
public void AddJoin <TLeft, TRight>(RightJoinAction <TLeft, TRight> action) where TLeft : class, new() where TRight : class, new() { TryAddEntity(typeof(TLeft)); TryAddEntity(typeof(TRight)); if (_joins.Contains(action) == false) { _joins.Add(action); } }