Пример #1
0
        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
        }
Пример #2
0
        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
        }