From: <ric...@us...> - 2009-07-02 21:02:40
|
Revision: 4562 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4562&view=rev Author: ricbrown Date: 2009-07-02 21:02:37 +0000 (Thu, 02 Jul 2009) Log Message: ----------- Renamed JoinWalk to JoinQueryOver. Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Criterion/QueryOver.cs trunk/nhibernate/src/NHibernate/IQueryOver.cs trunk/nhibernate/src/NHibernate.Test/Criteria/Lambda/QueryOverFixture.cs Modified: trunk/nhibernate/src/NHibernate/Criterion/QueryOver.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Criterion/QueryOver.cs 2009-07-02 20:55:15 UTC (rev 4561) +++ trunk/nhibernate/src/NHibernate/Criterion/QueryOver.cs 2009-07-02 21:02:37 UTC (rev 4562) @@ -62,14 +62,14 @@ return Add(expression); } - public IQueryOver<U> JoinWalk<U>(Expression<Func<T, U>> path) + public IQueryOver<U> JoinQueryOver<U>(Expression<Func<T, U>> path) { return new QueryOver<U>(_impl, _criteria.CreateCriteria( ExpressionProcessor.FindMemberExpression(path.Body))); } - public IQueryOver<U> JoinWalk<U>(Expression<Func<T, IEnumerable<U>>> path) + public IQueryOver<U> JoinQueryOver<U>(Expression<Func<T, IEnumerable<U>>> path) { return new QueryOver<U>(_impl, _criteria.CreateCriteria( Modified: trunk/nhibernate/src/NHibernate/IQueryOver.cs =================================================================== --- trunk/nhibernate/src/NHibernate/IQueryOver.cs 2009-07-02 20:55:15 UTC (rev 4561) +++ trunk/nhibernate/src/NHibernate/IQueryOver.cs 2009-07-02 21:02:37 UTC (rev 4562) @@ -55,7 +55,7 @@ /// <typeparam name="U">Type of sub-criteria</typeparam> /// <param name="path">Lambda expression returning association path</param> /// <returns>The created "sub criteria"</returns> - IQueryOver<U> JoinWalk<U>(Expression<Func<T, U>> path); + IQueryOver<U> JoinQueryOver<U>(Expression<Func<T, U>> path); /// <summary> /// Creates a new NHibernate.ICriteria<T>, "rooted" at the associated entity @@ -64,7 +64,7 @@ /// <typeparam name="U">Type of sub-criteria (type of the collection)</typeparam> /// <param name="path">Lambda expression returning association path</param> /// <returns>The created "sub criteria"</returns> - IQueryOver<U> JoinWalk<U>(Expression<Func<T, IEnumerable<U>>> path); + IQueryOver<U> JoinQueryOver<U>(Expression<Func<T, IEnumerable<U>>> path); /// <summary> /// Join an association, assigning an alias to the joined entity Modified: trunk/nhibernate/src/NHibernate.Test/Criteria/Lambda/QueryOverFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/Criteria/Lambda/QueryOverFixture.cs 2009-07-02 20:55:15 UTC (rev 4561) +++ trunk/nhibernate/src/NHibernate.Test/Criteria/Lambda/QueryOverFixture.cs 2009-07-02 21:02:37 UTC (rev 4562) @@ -123,7 +123,7 @@ IQueryOver<Person> actual = CreateTestQueryOver<Person>() - .JoinWalk(p => p.Father) // sub-criteria + .JoinQueryOver(p => p.Father) // sub-criteria .Where(f => f.Name == "test name"); AssertCriteriaAreEqual(expected, actual); @@ -139,7 +139,7 @@ IQueryOver<Child> actual = CreateTestQueryOver<Person>() - .JoinWalk<Child>(p => p.Children) // sub-criteria + .JoinQueryOver<Child>(p => p.Children) // sub-criteria .Where(c => c.Nickname == "test name"); AssertCriteriaAreEqual(expected, actual); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |