public void InsertChatUserMessage(Chat msg) { tblMessageUser c = new tblMessageUser() { MSG_USER_FROM = msg.FromUserID, MSG_USER_TO = msg.ToUserID, MSG_ID = dc.tblMessages.Where(z => z.TBL_MSG_TIME == msg.Time).First().TBL_MSG_ID, }; dc.tblMessageUsers.InsertOnSubmit(c); dc.SubmitChanges(); }
private void detach_tblMessageUsers(tblMessageUser entity) { this.SendPropertyChanging(); entity.tblMessage = null; }
private void attach_tblMessageUsers1(tblMessageUser entity) { this.SendPropertyChanging(); entity.tblUser1 = this; }
partial void DeletetblMessageUser(tblMessageUser instance);
partial void UpdatetblMessageUser(tblMessageUser instance);
partial void InserttblMessageUser(tblMessageUser instance);