private void detach_CardConfig(CardConfig entity)
		{
			this.SendPropertyChanging();
			entity.employeeInfo = null;
		}
 partial void DeleteCardConfig(CardConfig instance);
 partial void UpdateCardConfig(CardConfig instance);
 partial void InsertCardConfig(CardConfig instance);
 public int Update(CardConfig cc)
 {
     string sql = string.Format(@"update CardConfig set cardName='{0}',cardadd='{1}',cardtel='{2}',cardstate={3},cardimg='{4}',mincardid={5} where id={6}", cc.CardName, cc.CardAdd, cc.CardTel, cc.CardState, cc.CardImg, cc.MinCardID, cc.id);
     return SqlHelper.ExecuteNonQuery(CommandType.Text, sql);
 }
 public int Insert(CardConfig card)
 {
     db.CardConfig.InsertOnSubmit(card);
     db.SubmitChanges();
     return card.id;
 }