public void Log(string ipaddress, string logregel) { ZeebregtsLogic.Loggen log = new ZeebregtsLogic.Loggen(); log.Ipaddress = ipaddress; log.Message = logregel; log.Datum = DateTime.Now; datacontext.Loggens.InsertOnSubmit(log); datacontext.SubmitChanges(); // mm:ss.fff }
public void Log(string logregel) { ZeebregtsLogic.Loggen log = new ZeebregtsLogic.Loggen(); log.Ipaddress = string.IsNullOrWhiteSpace(ApplicationState.GetValue <string>(ApplicationVariables.strIpAddress)) ? "-" : ApplicationState.GetValue <string>(ApplicationVariables.strIpAddress); log.Message = logregel; log.Datum = DateTime.Now; datacontext.Loggens.InsertOnSubmit(log); datacontext.SubmitChanges(); // mm:ss.fff }