/// <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(); }
partial void Deletet_Log(t_Log instance);
partial void Updatet_Log(t_Log instance);
partial void Insertt_Log(t_Log instance);