Skip to content

Commit 6fc5dda

Browse files
committed
Update QueryOverFixture.cs
1 parent cc84248 commit 6fc5dda

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/NHibernate.Test/Criteria/Lambda/QueryOverFixture.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,15 @@ public void SimpleCriterion_AliasReferenceSyntaxProperty()
314314
public void SimpleCriterion_AliasReferenceSyntaxStaticField()
315315
{
316316
ICriteria expected =
317-
CreateTestCriteria(typeof(Person), "personAlias")
318-
.Add(Restrictions.Eq("personAlias.Name", "test name"))
319-
.Add(Restrictions.Not(Restrictions.Eq(("personAlias.Name"), "not test name")))
320-
.Add(Restrictions.Gt("personAlias.Age", 10))
321-
.Add(Restrictions.Ge("personAlias.Age", 11))
322-
.Add(Restrictions.Lt("personAlias.Age", 50))
323-
.Add(Restrictions.Le("personAlias.Age", 49))
324-
.Add(Restrictions.Eq("personAlias.class", typeof(Person)))
325-
.Add(Restrictions.Eq("personAlias.class", typeof(Person).FullName));
317+
CreateTestCriteria(typeof(Person), "personAliasStaticField")
318+
.Add(Restrictions.Eq("personAliasStaticField.Name", "test name"))
319+
.Add(Restrictions.Not(Restrictions.Eq(("personAliasStaticField.Name"), "not test name")))
320+
.Add(Restrictions.Gt("personAliasStaticField.Age", 10))
321+
.Add(Restrictions.Ge("personAliasStaticField.Age", 11))
322+
.Add(Restrictions.Lt("personAliasStaticField.Age", 50))
323+
.Add(Restrictions.Le("personAliasStaticField.Age", 49))
324+
.Add(Restrictions.Eq("personAliasStaticField.class", typeof(Person)))
325+
.Add(Restrictions.Eq("personAliasStaticField.class", typeof(Person).FullName));
326326

327327
IQueryOver<Person> actual =
328328
CreateTestQueryOver<Person>(() => personAliasStaticField)
@@ -344,15 +344,15 @@ public void SimpleCriterion_AliasReferenceSyntaxStaticField()
344344
public void SimpleCriterion_AliasReferenceSyntaxStaticProperty()
345345
{
346346
ICriteria expected =
347-
CreateTestCriteria(typeof(Person), "personAlias")
348-
.Add(Restrictions.Eq("personAlias.Name", "test name"))
349-
.Add(Restrictions.Not(Restrictions.Eq("personAlias.Name", "not test name")))
350-
.Add(Restrictions.Gt("personAlias.Age", 10))
351-
.Add(Restrictions.Ge("personAlias.Age", 11))
352-
.Add(Restrictions.Lt("personAlias.Age", 50))
353-
.Add(Restrictions.Le("personAlias.Age", 49))
354-
.Add(Restrictions.Eq("personAlias.class", typeof(Person)))
355-
.Add(Restrictions.Eq("personAlias.class", typeof(Person).FullName));
347+
CreateTestCriteria(typeof(Person), "personAliasStaticProperty")
348+
.Add(Restrictions.Eq("personAliasStaticProperty.Name", "test name"))
349+
.Add(Restrictions.Not(Restrictions.Eq("personAliasStaticProperty.Name", "not test name")))
350+
.Add(Restrictions.Gt("personAliasStaticProperty.Age", 10))
351+
.Add(Restrictions.Ge("personAliasStaticProperty.Age", 11))
352+
.Add(Restrictions.Lt("personAliasStaticProperty.Age", 50))
353+
.Add(Restrictions.Le("personAliasStaticProperty.Age", 49))
354+
.Add(Restrictions.Eq("personAliasStaticProperty.class", typeof(Person)))
355+
.Add(Restrictions.Eq("personAliasStaticProperty.class", typeof(Person).FullName));
356356

357357
IQueryOver<Person> actual =
358358
CreateTestQueryOver<Person>(() => personAliasStaticProperty)
@@ -1052,4 +1052,4 @@ public void TransformQueryOverToRowCount64()
10521052

10531053
}
10541054

1055-
}
1055+
}

0 commit comments

Comments
 (0)