Beispiel #1
0
        public void writeToFile(DBObjChanges dBObjAll)
        {
            var fileContent  = dBObjAll.DBObjChange;
            var fileName     = dBObjAll.ObjectName + ".sql";
            var FileFullPath = DirFullPath + "\\" + fileName;

            if (!Directory.Exists(DirFullPath))
            {
                Directory.CreateDirectory(DirFullPath);
            }
            File.WriteAllText(FileFullPath, fileContent);
        }
Beispiel #2
0
 public void saveGITCommittable(DBObjChanges doc)
 {
     using (var db = new DBChangesAuditEntities())
     {
         var result = db.DBObjChanges.SingleOrDefault(q => q.ID == doc.ID);
         if (result != null)
         {
             result.WritingToGIT = doc.WritingToGIT;
             result.BatchID      = doc.BatchID;
             result.GitLink      = doc.GitLink;
             db.SaveChanges();
         }
     }
 }