internal void Delete(t_customer_shopEntity dbEntity) { using (var conn = new SqlConnection(ConnectionString.XgxApInsert)) { conn.Open(); conn.Delete(dbEntity); } }
internal void Update(t_customer_shopEntity dbEntity) { using (var conn = new SqlConnection(ConnectionString.XgxApInsert)) { dbEntity.modify_time = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"); //dbEntity.modify_user_id = "ERP"; conn.Open(); conn.Update(dbEntity); } }
private t_customer_shopEntity ConvertTot_customer_shopEntity(UnitContract contract) { var result = new t_customer_shopEntity { customer_id = ConfigMgr.CustomerId, customer_shop_id = contract.UnitId, cs_code = contract.UnitCode, cs_name = contract.UnitName, cs_status = 1, cs_status_desc = "正常" }; return(result); }
public void Create(t_customer_shopEntity dbEntity) { _cmd.Create(dbEntity); }
public void Delete(t_customer_shopEntity dbEntity) { _cmd.Delete(dbEntity); }
public void Update(t_customer_shopEntity dbEntity) { _cmd.Update(dbEntity); }