protected override void AddValue(string value)
 {
     VehicleType vt = new VehicleType();
     vt.idVehicleType = FreeIndex;
     vt.nameVehicleType = value;
     EntitiesHolder.Entities.VehicleType.AddObject(vt);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the VehicleType EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVehicleType(VehicleType vehicleType)
 {
     base.AddObject("VehicleType", vehicleType);
 }
 /// <summary>
 /// Create a new VehicleType object.
 /// </summary>
 /// <param name="idVehicleType">Initial value of the idVehicleType property.</param>
 /// <param name="nameVehicleType">Initial value of the nameVehicleType property.</param>
 public static VehicleType CreateVehicleType(global::System.Decimal idVehicleType, global::System.String nameVehicleType)
 {
     VehicleType vehicleType = new VehicleType();
     vehicleType.idVehicleType = idVehicleType;
     vehicleType.nameVehicleType = nameVehicleType;
     return vehicleType;
 }