コード例 #1
0
ファイル: LogManager.cs プロジェクト: helios57/anrl
 /// <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();
 }
コード例 #2
0
ファイル: Database.designer.cs プロジェクト: helios57/anrl
 partial void Deletet_Log(t_Log instance);
コード例 #3
0
ファイル: Database.designer.cs プロジェクト: helios57/anrl
 partial void Updatet_Log(t_Log instance);
コード例 #4
0
ファイル: Database.designer.cs プロジェクト: helios57/anrl
 partial void Insertt_Log(t_Log instance);