Пример #1
0
 public void SearchCondition1([DataSources(TestProvName.AllAccess)] string context)
 {
     using (var db = GetDataContext(context))
         AreEqual(
             from t in Types
             where !t.BoolValue && (t.SmallIntValue == 5 || t.SmallIntValue == 7 || (t.SmallIntValue | 2) == 10)
             select t,
             VisualBasicCommon.SearchCondition1(db));
 }
 public void SearchCondition1()
 {
     ForEachProvider(
         new[] { ProviderName.Access },
         db => AreEqual(
             from t in Types
             where !t.BoolValue && (t.SmallIntValue == 5 || t.SmallIntValue == 7 || (t.SmallIntValue | 2) == 10)
             select t,
             VisualBasicCommon.SearchCondition1(db)));
 }