Esempio n. 1
0
        public void Log(string ipaddress, string logregel)
        {
            MandagenRegistratieDomain.Loggen log = new MandagenRegistratieDomain.Loggen();

            log.Ipaddress = ipaddress;
            log.Message   = logregel;
            log.Datum     = DateTime.Now;

            dbrep.datacontext.Loggens.InsertOnSubmit(log);
            dbrep.datacontext.SubmitChanges();
            // mm:ss.fff
        }
Esempio n. 2
0
        public void Log(string logregel)
        {
            MandagenRegistratieDomain.Loggen log = new MandagenRegistratieDomain.Loggen();

            log.Ipaddress = string.IsNullOrWhiteSpace(ApplicationState.GetValue <string>(ApplicationVariables.strIpAddress)) ? "-" : ApplicationState.GetValue <string>(ApplicationVariables.strIpAddress);
            log.Message   = logregel;
            log.Datum     = DateTime.Now;

            dbrep.datacontext.Loggens.InsertOnSubmit(log);
            dbrep.datacontext.SubmitChanges();
            // mm:ss.fff
        }