示例#1
0
        public void SearchComparingNestedInstanceProperties()
        {
            var constants = new NestedConstants();

            // Verify that nested instance properties in LINQ work
            var equality = _realm.All <Person>().Where(p => p.Salary == constants.InstanceConstants.SixtyThousandProperty).ToArray();

            Assert.That(equality.Length, Is.EqualTo(1));
            Assert.That(equality[0].FullName, Is.EqualTo("John Doe"));
        }
示例#2
0
        public void SearchComparingNestedInstanceProperties()
        {
            var constants = new NestedConstants();

            // Verify that nested instance properties in LINQ work
            var equality = _realm.All<Person>().Where(p => p.Salary == constants.InstanceConstants.SixtyThousandProperty).ToArray();
            Assert.That(equality.Length, Is.EqualTo(1));
            Assert.That(equality[0].FullName, Is.EqualTo("John Doe"));
        }