示例#1
0
 public RowData(CarKey key, Car car)
 {
     model_id = key.ModelId;
     model_make_id = key.ModelMakeId;
     model_year = key.ModelYear;
     model_name = key.ModelName;
     model_body = car.ModelBody;
     model_engine_cc = car.ModelEngineCc;
     model_engine_cyl = car.ModelEngineCyl;
     model_engine_type = car.ModelEngineType;
     model_engine_valves_per_cyl = car.ModelEngineValvesPerCyl;
     model_engine_power_ps = car.ModelEnginePowerPs;
     model_engine_compression = car.ModelEngineCompression;
     model_engine_fuel = car.ModelEngineFuel;
     model_top_speed_kph = car.ModelTopSpeedKph;
     model_0_to_100_kph = car.Model0To100Kph;
     model_transmission_type = car.ModelTransmissionType;
     model_weight_kg = car.ModelWeightKg;
 }
示例#2
0
 public void Update(CarKey key, Car car)
 {
     ModelId = key.ModelId;
     ModelMakeId = key.ModelMakeId;
     ModelYear = key.ModelYear;
     ModelName = key.ModelName;
     ModelBody = car.ModelBody;
     ModelEngineCc = car.ModelEngineCc;
     ModelEngineCyl = car.ModelEngineCyl;
     ModelEngineType = car.ModelEngineType;
     ModelEngineValvesPerCyl = car.ModelEngineValvesPerCyl;
     ModelEnginePowerPs = car.ModelEnginePowerPs;
     ModelEngineCompression = car.ModelEngineCompression;
     ModelEngineFuel = car.ModelEngineFuel;
     ModelTopSpeedKph = car.ModelTopSpeedKph;
     Model0To100Kph = car.Model0To100Kph;
     ModelTransmissionType = car.ModelTransmissionType;
     ModelWeightKg = car.ModelWeightKg;
 }