@@ -670,7 +670,7 @@ public QueryOver<TRoot, U> JoinEntityQueryOver<U>(Expression<Func<U>> alias, Exp
670
670
671
671
public QueryOver < TRoot , U > JoinEntityQueryOver < U > ( Expression < Func < U > > alias , ICriterion withClause , JoinType joinType = JoinType . InnerJoin , string entityName = null )
672
672
{
673
- return Create < U > ( CreateEntityCriteria ( alias , joinType , withClause , entityName ) ) ;
673
+ return Create < U > ( criteria . CreateEntityCriteria ( alias , withClause , joinType , entityName ) ) ;
674
674
}
675
675
676
676
public QueryOver < TRoot , TSubType > JoinAlias ( Expression < Func < TSubType , object > > path , Expression < Func < object > > alias )
@@ -773,11 +773,6 @@ private QueryOver<TRoot,TSubType> AddAlias(string path, string alias, JoinType j
773
773
return this ;
774
774
}
775
775
776
- private ICriteria CreateEntityCriteria < U > ( Expression < Func < U > > alias , JoinType joinType , ICriterion withClause , string entityName )
777
- {
778
- return criteria . CreateEntityCriteria ( ExpressionProcessor . FindMemberExpression ( alias . Body ) , withClause , joinType , entityName ?? typeof ( U ) . FullName ) ;
779
- }
780
-
781
776
private QueryOver < TRoot , TSubType > Add ( Expression < Func < TSubType , bool > > expression )
782
777
{
783
778
criteria . Add ( ExpressionProcessor . ProcessExpression < TSubType > ( expression ) ) ;
@@ -999,11 +994,6 @@ IQueryOver<TRoot, U> ISupportEntityJoinQueryOver<TRoot>.JoinEntityQueryOver<U>(E
999
994
return JoinEntityQueryOver ( alias , withClause , joinType , entityName ) ;
1000
995
}
1001
996
1002
- void ISupportEntityJoinQueryOver . CreateEntityAlias < U > ( Expression < Func < U > > alias , ICriterion withClause , JoinType joinType , string entityName )
1003
- {
1004
- CreateEntityCriteria ( alias , joinType , withClause , entityName ) ;
1005
- }
1006
-
1007
997
IQueryOverJoinBuilder < TRoot , TSubType > IQueryOver < TRoot , TSubType > . Inner
1008
998
{ get { return new IQueryOverJoinBuilder < TRoot , TSubType > ( this , JoinType . InnerJoin ) ; } }
1009
999
0 commit comments