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