partial void Updatemessages(messages instance);
partial void Deletemessages(messages instance);
partial void Insertmessages(messages instance);
private void detach_messages1(messages entity) { this.SendPropertyChanging(); entity.users1 = null; }
private void attach_messages1(messages entity) { this.SendPropertyChanging(); entity.users1 = this; }
public MessageView(messages m) { _m = m; }
public static bool Send(MessageNew m) { int dat = Time.UNIXNow(); var mnew = new messages() { body = m.body, date = Time.UNIXNow(), from = m.sender, to = m.recipient }; context.messages.InsertOnSubmit(mnew); try { return Save(); } catch (Exception exp) { return false; } }