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

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

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