예제 #1
0
 public void runBatch(databaseContext context)
 {
     foreach (FileInfo file in new DirectoryInfo(this.batchURL).GetFiles("*.json"))
     {
         context.AddEntry(JsonConvert.DeserializeObject <RunMod>(File.ReadAllText(file.ToString())));
     }
 }
예제 #2
0
 public void addBatch(databaseContext context)
 {
     foreach (string fileurl in Directory.GetFiles(batchURL))
     {
         SerializeFile(fileurl);
     }
 }