public void Update(CompanyBussiness model) { var target = Find(model.ID); DB_Service.Attach<CompanyBussiness>(target); target.CateName = model.CateName; target.PID = model.PID; DB_Service.Commit(); }
public void Delete(CompanyBussiness model) { var target = Find(model.ID); DB_Service.Remove<CompanyBussiness>(target); DB_Service.Commit(); }
public void Create(CompanyBussiness model) { DB_Service.Add<CompanyBussiness>(model); DB_Service.Commit(); }