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