partial void DeleteGuanJianZiHuiFu(GuanJianZiHuiFu instance);
		private void detach_GuanJianZiHuiFu(GuanJianZiHuiFu entity)
		{
			this.SendPropertyChanging();
			entity.GuanJianZiHuiFuType = null;
		}
		private void attach_GuanJianZiHuiFu(GuanJianZiHuiFu entity)
		{
			this.SendPropertyChanging();
			entity.GuanJianZi = this;
		}
 partial void UpdateGuanJianZiHuiFu(GuanJianZiHuiFu instance);
 partial void InsertGuanJianZiHuiFu(GuanJianZiHuiFu instance);
 /// <summary>
 /// 添加关键字回复内容
 /// </summary>
 /// <param name="pc"></param>
 /// <returns></returns>
 public int AddGuanJianZiHuiFu(GuanJianZiHuiFu gjz)
 {
     db.GuanJianZiHuiFu.InsertOnSubmit(gjz);
     db.SubmitChanges();
     return gjz.hfId;
 }
        /// <summary>
        /// 修改关键字回复内容
        /// </summary>
        /// <param name="pc"></param>
        /// <returns></returns>
        public int UpdateGuanJianZiHuiFu(GuanJianZiHuiFu gjz)
        {
            try
            {
                var rest = from g in db.GuanJianZiHuiFu where g.hfId == gjz.hfId select g;
                foreach (var item in rest)
                {
                    item.hfId = gjz.hfId;
                    item.typeId = gjz.typeId;
                    item.gjzId = gjz.gjzId;
                    item.content = gjz.content;
                    item.time = gjz.time;
                    item.isDisplay = gjz.isDisplay;
                    item.remark = gjz.remark;
                    item.title = gjz.title;
                    item.img = gjz.img;
                    item.temp1 = gjz.temp1;

                };
                db.SubmitChanges();
                return 1;
            }
            catch (Exception)
            {
                return 0;
            }
        }