public void Delete(TopCompany model) { var target = Find(model.ID); DB_Service.Remove<TopCompany>(target); DB_Service.Commit(); }
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(); }
public void Create(TopCompany model) { DB_Service.Add<TopCompany>(model); DB_Service.Commit(); }