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);
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 6
0
 public int Insert(CardConfig card)
 {
     db.CardConfig.InsertOnSubmit(card);
     db.SubmitChanges();
     return card.id;
 }