public static int Delete(KeySex model,object trans)
		{
			if(model != null && trans !=null )
				return baseOperate.Delete(model,trans);	
			else
				throw new ApplicationException("在dbo.key_sex中删除一条记录时,传递的参数model,trans有错误!");
		}
		public static int Delete(KeySex model)
		{
			if(model != null)
				return baseOperate.Delete(model);	
			else
				throw new ApplicationException("在dbo.key_sex中删除一条记录时,传递的参数model为Null!");;
		}
		public static int Insert(KeySex model)
		{
			if(model != null)
				return baseOperate.Insert(model);
			else
				throw new ApplicationException("在dbo.key_sex中增加一条记录时,传递的参数model为Null!");
		}
		public static bool Exists(KeySex model)
		{
			if(model != null )
				return baseOperate.Exists(model);	
			else
				throw new ApplicationException("在dbo.key_sex中查询某条记录是否存在时,传递的参数model为Null!");
					
		}
		public  static KeySex GetModel(KeySex model)
		{
			if(model != null )
				return baseOperate.GetModel(model);	
			else
				throw new ApplicationException("根据主键获取dbo.key_sex中的一条记录时,传递的参数model为Null!");
					
		}
        protected void btnInsertSex_Click(object sender, EventArgs e)
        {
            KeySex ks = new KeySex();

            ks.Keyid = Guid.NewGuid().ToString();
            ks.Keyname = "男";
            ks.Keycode = "1";
            ks.Keyinfo = "男";
            ks.Sort = 0;
            BizKeySex.Insert(ks);

            ks.Keyid = Guid.NewGuid().ToString();
            ks.Keyname = "女";
            ks.Keycode = "0";
            ks.Keyinfo = "女";
            ks.Sort = 1;
            BizKeySex.Insert(ks);

            LABMsg.Text = "插入性别字典表成功";
        }