示例#1
0
 public void Delete(TopCompany model)
 {
     var target = Find(model.ID);
     DB_Service.Remove<TopCompany>(target);
     DB_Service.Commit();
 }
示例#2
0
 public void Update(TopCompany model)
 {
     var target = Find(model.ID);
     DB_Service.Attach<TopCompany>(target);
     target.TopTime = model.TopTime;
     target.MemberID = model.MemberID;
     target.IsByCategory = model.IsByCategory;
     target.ProvinceCode = model.ProvinceCode;
     target.CityCode = model.CityCode;
     target.IsByChildCategory = model.IsByChildCategory;
     target.IsQuanGuo = model.IsQuanGuo;
     target.PCategoryCode = model.PCategoryCode;
     DB_Service.Commit();
 }
示例#3
0
 public void Create(TopCompany model)
 {
     DB_Service.Add<TopCompany>(model);
     DB_Service.Commit();
 }