示例#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;
                }
            }