public MCommentEdit(mcomments qc) { _mc = qc; }
public MComment(mcomments mc) { _mc = mc; }
public MCommentView(mcomments mc) { _mc = mc; }
partial void Updatemcomments(mcomments instance);
partial void Deletemcomments(mcomments instance);
partial void Insertmcomments(mcomments instance);
private void detach_mcomments(mcomments entity) { this.SendPropertyChanging(); entity.users = null; }
private void attach_mcomments(mcomments entity) { this.SendPropertyChanging(); entity.users = this; }
public static bool writecomment(MCommentNew MCommNew) { var cont = new dbModelDataContext(ConfigurationManager.ConnectionStrings["quest_projectConnectionString"].ConnectionString); var NewMComm = new mcomments() { body = MCommNew.body, owner = MCommNew.owner.ID, mid = MCommNew.mid, date = Time.UNIXNow() }; try { cont.mcomments.InsertOnSubmit(NewMComm); cont.SubmitChanges(); return true; var cont1 = context.mission; } catch { return false; } }
public static bool writecomment(int mid, int owner, string body) { var mcomment = new mcomments() { body = body, owner = owner, mid = mid, date = Time.UNIXNow() }; try { context.mcomments.InsertOnSubmit(mcomment); Save(); return true; } catch { return false; } }