Beispiel #1
0
 public void TestEF()
 {
     OTControler ctc = new OTControler();
     var q = from p in ctc.context.OT_APP1 select p;
     if (q.Count() > 0)
         Assert.IsTrue(true);
     else
         Assert.IsTrue(false);
 }
Beispiel #2
0
 static void HandleOffsets()
 {
     int i = 1;
     OTControler ctc = new OTControler();
     Comm.Logger.Info("开始导入补休数据...");
     foreach (OffsetItem item in validOffsets)
     {
         Comm.Logger.Info("Process record " + i.ToString() + "...");
         if(i==75)
         {
             Console.Write("75");
         }
         ctc.ProcessOffset(item);
         i++;
     }
 }