Пример #1
0
 public void Update(OwnerCate model)
 {
     var target = Find(model.ID);
     DB_Service.Attach<OwnerCate>(target);
     target.CateName = model.CateName;
     target.CateCode = model.CateCode;
     target.PCateCode = model.PCateCode;
     DB_Service.Commit();
 }
Пример #2
0
 public void Delete(OwnerCate model)
 {
     var target = Find(model.ID);
     DB_Service.Remove<OwnerCate>(target);
     DB_Service.Commit();
 }
Пример #3
0
 public void Create(OwnerCate model)
 {
     DB_Service.Add<OwnerCate>(model);
     DB_Service.Commit();
 }