コード例 #1
0
        public void SearchComparingInstanceProperties()
        {
            var constants = new InstanceConstants();

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

            Assert.That(equality.Length, Is.EqualTo(1));
            Assert.That(equality[0].FullName, Is.EqualTo("John Doe"));
        }
コード例 #2
0
ファイル: SimpleLINQtests.cs プロジェクト: realm/realm-dotnet
        public void SearchComparingInstanceProperties()
        {
            var constants = new InstanceConstants();

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