예제 #1
0
파일: comment.cs 프로젝트: kioltk/mvc
 public MCommentEdit(mcomments qc)
 {
     _mc = qc;
 }
예제 #2
0
파일: comment.cs 프로젝트: kioltk/mvc
 public MComment(mcomments mc)
 {
     _mc = mc;
 }
예제 #3
0
파일: comment.cs 프로젝트: kioltk/mvc
 public MCommentView(mcomments mc)
 {
     _mc = mc;
 }
예제 #4
0
 partial void Updatemcomments(mcomments instance);
예제 #5
0
 partial void Deletemcomments(mcomments instance);
예제 #6
0
 partial void Insertmcomments(mcomments instance);
예제 #7
0
		private void detach_mcomments(mcomments entity)
		{
			this.SendPropertyChanging();
			entity.users = null;
		}
예제 #8
0
		private void attach_mcomments(mcomments entity)
		{
			this.SendPropertyChanging();
			entity.users = this;
		}
예제 #9
0
파일: DataBase.cs 프로젝트: kioltk/mvc
            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;
                }
            }
예제 #10
0
파일: DataBase.cs 프로젝트: kioltk/mvc
            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;
                }
            }