예제 #1
0
 public void Update(ArticleCate model)
 {
     var target = Find(model.ID);
     DB_Service.Attach<ArticleCate>(target);
     target.CateName = model.CateName;
     target.PID = model.PID;
     DB_Service.Commit();
 }
예제 #2
0
 public void Delete(ArticleCate model)
 {
     var target = Find(model.ID);
     DB_Service.Remove<ArticleCate>(target);
     DB_Service.Commit();
 }
예제 #3
0
 public void Create(ArticleCate model)
 {
     DB_Service.Add<ArticleCate>(model);
     DB_Service.Commit();
 }