partial void DeleteemailUpdate(emailUpdate instance);
private void detach_emailUpdate(emailUpdate entity) { this.SendPropertyChanging(); entity.accounts = null; }
partial void InsertemailUpdate(emailUpdate instance);
public static bool emailUpdate(AccountEdit account) { try { emailUpdate NewUpdate = new emailUpdate() { owner = account.id, confirmation = CreateMD5Hash("update" + account.id.ToString() + Time.UNIXNow()), date = Time.UNIXNow(), email = account.email }; context.emailUpdate.InsertOnSubmit(NewUpdate); if (Save()) { Mailer.EmailSubmit(NewUpdate.email, NewUpdate.confirmation); return true; } return false; } catch { return false; } }