/// <summary>
 /// 更新
 /// </summary>
 /// <param name="car">实体对象</param>
 /// <returns></returns>
 public override bool Update(CarSeriesEntity car)
 {
     return(CarDataAccess.Update(
                "UPDATE hengtu_carmodeldetail SET model=@SeriesName WHERE modelid=@ModelId AND linkurl=@LinkUrl", new
     {
         car.SeriesName,
         car.ModelId,
         car.LinkUrl
     }));
 }
Beispiel #2
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="car">实体对象</param>
 /// <returns></returns>
 public override bool Update(CarModelEntity car)
 {
     return(CarDataAccess.Update(
                "UPDATE hengtu_carmodel SET model=@ModelName,factory=@Factory,add_time=@AddTime,image=@ImagePath,national_reference_price=@NationalReferencePrice,msrp=@Msrp,second_hand=@SecondHand,fuel_consumption=@FuelConsumption WHERE brandid=@BrandId AND linkurl=@LinkUrl",
                new
     {
         car.ModelName,
         car.Factory,
         car.AddTime,
         car.ImagePath,
         car.NationalReferencePrice,
         car.Msrp,
         car.SecondHand,
         car.FuelConsumption,
         car.BrandId,
         car.LinkUrl
     }));
 }
Beispiel #3
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="car">实体对象</param>
 /// <returns></returns>
 public override bool Update(CarBrandEntity car)
 {
     return(CarDataAccess.Update(
                "UPDATE hengtu_carbrand SET brand=@BrandName,logo=@BrandLogo,add_time=@AddTime WHERE rid=@Rid AND url=@Url AND tagname=@TagName",
                new { car.BrandName, car.BrandLogo, car.AddTime, car.Rid, car.Url, car.TagName }));
 }