I have same problem :(

letov:
> Hi.
> --NullReferenceException
> Loader\Criteria\CriteriaLoader.cs(114,0): at
> NHibernate.Loader.Criteria.CriteriaLoader.ApplyLocks(SqlString
> sqlSelectString, IDictionary`2 lockModes, Dialect dialect)
>
> Test to reproduce(based on NHibernate.Test.NHSpecificTest.NH1077):
>
> [TestFixture]
>       public class Fixture : BugTestCase
>       {
>
>               [Test]
>               public void Test()
>               {
>                       using (ISession s = OpenSession())
>                       using (ITransaction t = s.BeginTransaction())
>                       {
>                               A a = new A("hunabKu");
>                       s.Save(a);
>                               t.Commit();
>                       }
>
>                       using (ISession s = OpenSession())
>                       using (ITransaction t = s.BeginTransaction())
>                       {
>                           
> Assert.AreEqual(1,s.CreateCriteria<A>().SetProjection
> (Projections.RowCountInt64()).SetLockMode
> (LockMode.None).UniqueResult<long>());
>                 t.Commit();
>                       }
>
>                       using (ISession s = OpenSession())
>                       using (ITransaction t = s.BeginTransaction())
>                       {
>                               s.Delete("from A");
>                               t.Commit();
>                       }
>               }
>       }
>
> Thanks.

--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=.


Reply via email to