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