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