Esempio n. 1
0
 public MCommentEdit(mcomments qc)
 {
     _mc = qc;
 }
Esempio n. 2
0
 public MComment(mcomments mc)
 {
     _mc = mc;
 }
Esempio n. 3
0
 public MCommentView(mcomments mc)
 {
     _mc = mc;
 }
Esempio n. 4
0
 partial void Updatemcomments(mcomments instance);
Esempio n. 5
0
 partial void Deletemcomments(mcomments instance);
Esempio n. 6
0
 partial void Insertmcomments(mcomments instance);
Esempio n. 7
0
		private void detach_mcomments(mcomments entity)
		{
			this.SendPropertyChanging();
			entity.users = null;
		}
Esempio n. 8
0
		private void attach_mcomments(mcomments entity)
		{
			this.SendPropertyChanging();
			entity.users = this;
		}
Esempio n. 9
0
            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;
                }
            }
Esempio n. 10
0
            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;
                }
            }