Example #1
0
 partial void DeleteemailUpdate(emailUpdate instance);
Example #2
0
		private void detach_emailUpdate(emailUpdate entity)
		{
			this.SendPropertyChanging();
			entity.accounts = null;
		}
Example #3
0
 partial void InsertemailUpdate(emailUpdate instance);
Example #4
0
            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;
                }
            }