Пример #1
0
        private static void Insert_audit(ENode revised)
        {
            var db = new auditDataContext();
            audit newaudit = new audit
            {
                ip = revised.ip,
                landscape = revised.landscape,
                macaddress = revised.macaddress,
                manu = revised.manu,
                mname = revised.mname,
                devicetype = revised.devicetype,
                notes = revised.notes,
                timestamp=DateTime.Now,
                username=System.Environment.UserName,
                mhandle=revised.mhandle
            };

            db.audits.InsertOnSubmit(newaudit);
            db.SubmitChanges();
        }
Пример #2
0
 partial void Deleteaudit(audit instance);
Пример #3
0
 partial void Updateaudit(audit instance);
Пример #4
0
 partial void Insertaudit(audit instance);