@@ -670,7 +670,7 @@ public QueryOver<TRoot, U> JoinEntityQueryOver<U>(Expression<Func<U>> alias, Exp
670670
671671 public QueryOver < TRoot , U > JoinEntityQueryOver < U > ( Expression < Func < U > > alias , ICriterion withClause , JoinType joinType = JoinType . InnerJoin , string entityName = null )
672672 {
673- return Create < U > ( CreateEntityCriteria ( alias , joinType , withClause , entityName ) ) ;
673+ return Create < U > ( criteria . CreateEntityCriteria ( alias , withClause , joinType , entityName ) ) ;
674674 }
675675
676676 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
773773 return this ;
774774 }
775775
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-
781776 private QueryOver < TRoot , TSubType > Add ( Expression < Func < TSubType , bool > > expression )
782777 {
783778 criteria . Add ( ExpressionProcessor . ProcessExpression < TSubType > ( expression ) ) ;
@@ -999,11 +994,6 @@ IQueryOver<TRoot, U> ISupportEntityJoinQueryOver<TRoot>.JoinEntityQueryOver<U>(E
999994 return JoinEntityQueryOver ( alias , withClause , joinType , entityName ) ;
1000995 }
1001996
1002- void ISupportEntityJoinQueryOver . CreateEntityAlias < U > ( Expression < Func < U > > alias , ICriterion withClause , JoinType joinType , string entityName )
1003- {
1004- CreateEntityCriteria ( alias , joinType , withClause , entityName ) ;
1005- }
1006-
1007997 IQueryOverJoinBuilder < TRoot , TSubType > IQueryOver < TRoot , TSubType > . Inner
1008998 { get { return new IQueryOverJoinBuilder < TRoot , TSubType > ( this , JoinType . InnerJoin ) ; } }
1009999
0 commit comments