public SelectComponent Include <TModel, TModel1>(Expression <Func <TModel, TModel1> > include) where TModel : EntityBase, new() where TModel1 : EntityBase, new() { Check.IfNullOrZero(include); var joinComponent = new JoinComponent(); joinComponent.AddInclude(include); JoinComponents.Add(joinComponent); return(this); }
public SelectComponent InnerJoin <TLeft, TRight>(Expression <Func <TLeft, TRight, Boolean> > join) where TLeft : EntityBase, new() where TRight : EntityBase, new() { Check.IfNullOrZero(join); var joinComponent = new JoinComponent(); joinComponent.AddJoin(join, JoinRelation.INNER); JoinComponents.Add(joinComponent); return(this); }