Esempio n. 1
0
 public void Update(CompanyBussiness model)
 {
     var target = Find(model.ID);
     DB_Service.Attach<CompanyBussiness>(target);
     target.CateName = model.CateName;
     target.CateCode = model.CateCode;
     target.PCateCode = model.PCateCode;
     DB_Service.Commit();
 }
Esempio n. 2
0
 public void Delete(CompanyBussiness model)
 {
     var target = Find(model.ID);
     DB_Service.Remove<CompanyBussiness>(target);
     DB_Service.Commit();
 }
Esempio n. 3
0
 public void Create(CompanyBussiness model)
 {
     DB_Service.Add<CompanyBussiness>(model);
     DB_Service.Commit();
 }