Ejemplo n.º 1
0
 /// <summary>
 /// Add a Log entry
 /// </summary>
 /// <param name="DB_Path">Path of the DB to add the Log</param>
 /// <param name="Level">Level of the Log 0 = Error, 4 = information</param>
 /// <param name="Project">Project which throw this log entry</param>
 /// <param name="Text">Description / Data of this Log</param>
 public static void AddLog(string DB_Path,int Level, string Project, string Text)
 {
     DatabaseDataContext dataContext = new DatabaseDataContext(DB_Path);
     t_Log LogEntry = new t_Log();
     LogEntry.level = Level;
     LogEntry.project = Project;
     LogEntry.Text = Text;
     LogEntry.timestamp = DateTime.Now;
     dataContext.t_Logs.InsertOnSubmit(LogEntry);
     dataContext.SubmitChanges();
 }
Ejemplo n.º 2
0
 partial void Deletet_Log(t_Log instance);
Ejemplo n.º 3
0
 partial void Updatet_Log(t_Log instance);
Ejemplo n.º 4
0
 partial void Insertt_Log(t_Log instance);