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(); }
partial void Deleteaudit(audit instance);
partial void Updateaudit(audit instance);
partial void Insertaudit(audit instance);