System.Data.SQLite
Check-in [e4a43ed4dc]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add test case for ticket [1a93312113].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tkt-1a93312113
Files: files | file ages | folders
SHA1: e4a43ed4dc186b3b1641ce951eceb87505dee2d9
User & Date: mistachkin 2016-02-03 22:41:05
Context
2016-02-05
04:39
Another small tweak to various batch tools. Closed-Leaf check-in: d776872029 user: mistachkin tags: mistake
2016-02-03
22:41
Add test case for ticket [1a93312113]. Closed-Leaf check-in: e4a43ed4dc user: mistachkin tags: tkt-1a93312113
2016-01-28
00:06
Minor correction to the batch tool changes in the previous check-in. check-in: e342ec0466 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to testlinq/Program.cs.

   170    170   
   171    171                                 return 1;
   172    172                             }
   173    173                         }
   174    174   
   175    175                         return BinaryGuidTest(value);
   176    176                     }
          177  +#if NET_40 || NET_45 || NET_451 || NET_452 || NET_46 || NET_461
          178  +              case "any":
          179  +                  {
          180  +                      return AnyTest();
          181  +                  }
          182  +#endif
   177    183   #if NET_40 || NET_45 || NET_451 || NET_452 || NET_46 || NET_461
   178    184                 case "binaryguid2":
   179    185                     {
   180    186                         bool value = false;
   181    187   
   182    188                         if (args.Length > 1)
   183    189                         {
................................................................................
   876    882                 }
   877    883   
   878    884                 Console.WriteLine("updated {0}", counts[1]);
   879    885             }
   880    886   
   881    887             return 0;
   882    888         }
          889  +
          890  +#if NET_40 || NET_45 || NET_451 || NET_452 || NET_46 || NET_461
          891  +      private static int AnyTest()
          892  +      {
          893  +          using (northwindEFEntities db = new northwindEFEntities())
          894  +          {
          895  +              var list1 = db.Orders.Select(x => x.OrderID).ToList();
          896  +              var list2 = db.OrderDetails.Where(x => list1.Any(y => y == x.OrderID)).ToList();
          897  +              return 0;
          898  +          }
          899  +      }
          900  +#endif
   883    901   
   884    902         private static int DateTimeTest()
   885    903         {
   886    904             using (northwindEFEntities db = new northwindEFEntities())
   887    905             {
   888    906                 DateTime dateTime = new DateTime(1997, 1, 1, 0, 0, 0, DateTimeKind.Local);
   889    907                 int c1 = db.Orders.Where(i => i.OrderDate == new DateTime(1997, 1, 1, 0, 0, 0, DateTimeKind.Local)).Count();