private void detach_GuanJianZi(GuanJianZi entity)
		{
			this.SendPropertyChanging();
			entity.employeeInfo = null;
		}
		private void attach_GuanJianZi(GuanJianZi entity)
		{
			this.SendPropertyChanging();
			entity.GuanJianZiType = this;
		}
		private void detach_GuanJianZi(GuanJianZi entity)
		{
			this.SendPropertyChanging();
			entity.GuanJianZiType = null;
		}
 partial void DeleteGuanJianZi(GuanJianZi instance);
 partial void UpdateGuanJianZi(GuanJianZi instance);
 partial void InsertGuanJianZi(GuanJianZi instance);
        /// <summary>
        /// 添加关键字
        /// </summary>
        /// <param name="pc"></param>
        /// <returns></returns>
        public int AddGuanJianZi(GuanJianZi gjz)
        {
            string sql = string.Format(@"insert into GuanJianZi values('{0}',{1},{2},'{3}',{4},'{5}','{6}','{7}','{8}','{9}','{10}','{11}','{12}','{13}','{14}','{15}')", gjz.name, gjz.eId,gjz.typeId, gjz.time, gjz.isDisplay, gjz.remark, gjz.temp1, gjz.temp2, gjz.temp3, gjz.temp4, gjz.temp5, gjz.temp6, gjz.temp7, gjz.temp8, gjz.temp9, gjz.temp10);

            return SqlServerHelper.ExecuteSql(sql);
        }
 /// <summary>
 /// 修改关键字
 /// </summary>
 /// <param name="pc"></param>
 /// <returns></returns>
 public int UpdateGuanJianZi(GuanJianZi gjz)
 {
     string sql = string.Format(@" update GuanJianZi set name='{0}',eid={1},typeId={2},[time]='{3}',isDisplay={4},remark='{5}',temp1='{6}',temp2='{7}',temp3='{8}',temp4='{9}',temp5='{10}',temp6='{11}',temp7='{12}',temp8='{13}',temp9='{14}',temp10='{15}' where gjzId={16}", gjz.name, gjz.eId,gjz.typeId, gjz.time, gjz.isDisplay, gjz.remark, gjz.temp1, gjz.temp2, gjz.temp3, gjz.temp4, gjz.temp5, gjz.temp6, gjz.temp7, gjz.temp8, gjz.temp9, gjz.temp10, gjz.gjzId);
     return SqlServerHelper.ExecuteSql(sql);
 }