Пример #1
0
 private void AddFile(String guid, String path, int modificationFlag)
 {
     using (MobeelizerDatabaseContext transaction = new MobeelizerDatabaseContext(this.ConnectionString))
     {
         MobeelizerFilesTableEntity entity = new MobeelizerFilesTableEntity();
         entity.Guid     = guid;
         entity.Path     = path;
         entity.Modyfied = modificationFlag;
         transaction.Files.InsertOnSubmit(entity);
         transaction.SubmitChanges(ConflictMode.FailOnFirstConflict);
     }
 }
Пример #2
0
 private void AddFile(String guid, String path, int modificationFlag)
 {
     using (MobeelizerDatabaseContext transaction = new MobeelizerDatabaseContext(this.ConnectionString))
     {
         MobeelizerFilesTableEntity entity = new MobeelizerFilesTableEntity();
         entity.Guid = guid;
         entity.Path = path;
         entity.Modyfied = modificationFlag;
         transaction.Files.InsertOnSubmit(entity);
         transaction.SubmitChanges(ConflictMode.FailOnFirstConflict);
     }
 }