Пример #1
0
 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();
 }
Пример #2
0
 public void Delete(PeriodCate model)
 {
     var target = Find(model.ID);
     DB_Service.Remove<PeriodCate>(target);
     DB_Service.Commit();
 }
Пример #3
0
 public void Create(PeriodCate model)
 {
     DB_Service.Add<PeriodCate>(model);
     DB_Service.Commit();
 }