diff --git a/.gitignore b/.gitignore
index 846284a0fd1..9a9926b3127 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,16 @@ current-test-configuration
# This will be copied from the build directory to the lib directory in order
# to satisfy later build steps. But it should not be committed.
NHibernate.dll
+src/packages/Antlr4.StringTemplate.4.0.6.9004/Antlr4.StringTemplate.4.0.6.9004.nupkg
+src/packages/Iesi.Collections.4.0.1.4000/Iesi.Collections.4.0.1.4000.nupkg
+src/packages/Iesi.Collections.4.0.1.4000/lib/net40/Iesi.Collections.xml
+src/packages/Remotion.Linq.1.15.9.0/Remotion.Linq.1.15.9.0.nupkg
+src/packages/Remotion.Linq.1.15.9.0/lib/net45/Remotion.Linq.xml
+src/packages/log4net.2.0.3/lib/net10-full/log4net.xml
+src/packages/log4net.2.0.3/lib/net11-full/log4net.xml
+src/packages/log4net.2.0.3/lib/net20-full/log4net.xml
+src/packages/log4net.2.0.3/lib/net35-client/log4net.xml
+src/packages/log4net.2.0.3/lib/net35-full/log4net.xml
+src/packages/log4net.2.0.3/lib/net40-client/log4net.xml
+src/packages/log4net.2.0.3/lib/net40-full/log4net.xml
+src/packages/log4net.2.0.3/log4net.2.0.3.nupkg
diff --git a/Tools/nant/bin/NDoc.Documenter.NAnt.dll b/Tools/nant/bin/NDoc.Documenter.NAnt.dll
deleted file mode 100644
index d9dcccb470c..00000000000
Binary files a/Tools/nant/bin/NDoc.Documenter.NAnt.dll and /dev/null differ
diff --git a/src/NHibernate.Test/Linq/QueryLock.cs b/src/NHibernate.Test/Linq/QueryLock.cs
new file mode 100644
index 00000000000..cb9308da0d2
--- /dev/null
+++ b/src/NHibernate.Test/Linq/QueryLock.cs
@@ -0,0 +1,46 @@
+using System.Linq;
+using NHibernate.AdoNet;
+using NHibernate.Cfg;
+using NHibernate.Engine;
+using NHibernate.Linq;
+using NUnit.Framework;
+
+namespace NHibernate.Test.Linq
+{
+ public class QueryLock : LinqTestCase
+ {
+
+ [Test]
+ public void CanSetLockLinqQueries()
+ {
+ var result = (from e in db.Customers
+ where e.CompanyName == "Corp"
+ select e).SetLockMode(LockMode.Upgrade).ToList();
+
+ }
+
+
+ [Test]
+ public void CanSetLockOnLinqPagingQuery()
+ {
+ var result = (from e in db.Customers
+ where e.CompanyName == "Corp"
+ select e).Skip(5).Take(5).SetLockMode(LockMode.Upgrade).ToList();
+ }
+
+
+ [Test]
+ public void CanLockBeforeSkipOnLinqOrderedPageQuery()
+ {
+ var result = (from e in db.Customers
+ orderby e.CompanyName
+ select e)
+ .SetLockMode(LockMode.Upgrade).Skip(5).Take(5).ToList();
+
+
+ }
+
+
+ }
+
+}
diff --git a/src/NHibernate.Test/NHibernate.Test.csproj b/src/NHibernate.Test/NHibernate.Test.csproj
index 465ef870a14..27949e04d8a 100644
--- a/src/NHibernate.Test/NHibernate.Test.csproj
+++ b/src/NHibernate.Test/NHibernate.Test.csproj
@@ -518,6 +518,7 @@
+
diff --git a/src/NHibernate/Linq/GroupBy/AggregatingGroupByRewriter.cs b/src/NHibernate/Linq/GroupBy/AggregatingGroupByRewriter.cs
index e7b3acd7654..8fec9d2c3f3 100644
--- a/src/NHibernate/Linq/GroupBy/AggregatingGroupByRewriter.cs
+++ b/src/NHibernate/Linq/GroupBy/AggregatingGroupByRewriter.cs
@@ -38,6 +38,7 @@ public static class AggregatingGroupByRewriter
typeof (AnyResultOperator),
typeof (AllResultOperator),
typeof (TimeoutResultOperator),
+ typeof (LockResultOperator),
};
public static void ReWrite(QueryModel queryModel)
diff --git a/src/NHibernate/Linq/LinqExtensionMethods.cs b/src/NHibernate/Linq/LinqExtensionMethods.cs
index c8b9acb2c0b..fe546d764f7 100755
--- a/src/NHibernate/Linq/LinqExtensionMethods.cs
+++ b/src/NHibernate/Linq/LinqExtensionMethods.cs
@@ -22,7 +22,7 @@ public static IQueryable Query(this IStatelessSession session)
public static IQueryable Cacheable(this IQueryable query)
{
- var method = ReflectionHelper.GetMethodDefinition(() => Cacheable