partial void DeleteAuditDTO(AuditDTO instance);
partial void InsertAuditDTO(AuditDTO instance);
partial void UpdateAuditDTO(AuditDTO instance);
private void SetUsername(AuditDTO audit) { using (DataClassesDataContext data = new DataClassesDataContext()) { var q = from u in data.UserDTO where u.Login_ID == audit.Login_ID select u; if (q.Count() > 0) { audit.Username = q.First().Username; } } }