コード例 #1
0
        public void SELECT_Two_Columns_WHERE_Three_Complex_Parameter()
        {
            var expected = "SELECT Age, Name FROM Users WHERE ((Id = 1234 OR Age = 10) AND Name = 'Adama')";

            var query = _family
                        .Where(f => (f["Id"] == 1234 || f["Age"] == 10) && f["Name"] == "Adama")
                        .Select("Age", "Name");

            var actual = query.ToString();

            AreEqual(expected, actual);
        }