Beispiel #1
0
        public IQueryOver <TEntity> Join <TOther>(Expression <Func <TEntity, object> > entity,
                                                  Expression <Func <TOther, object> > other)
            where TOther : class, new()
        {
            var action = new InnerJoinAction <TEntity, TOther>(_metadatastore);

            action.Enqueue(entity, other);
            _queryDefinition.AddJoin(action);
            return(this);
        }
Beispiel #2
0
        public IQuery <TParentEntity> JoinOn <TChildEntity>(Expression <Func <TChildEntity, object> > child,
                                                            Expression <Func <TParentEntity, object> > parent)
            where TChildEntity : class, new()
        {
            var innerJoinAction = new InnerJoinAction <TParentEntity, TChildEntity>(_metadatastore);

            innerJoinAction.Enqueue(parent, child);
            _joinActions.Add(innerJoinAction);
            return(this);
        }