public void SaveToDB(tblVehicle vehicle)
        {
            var ctx = new seleniumScrapeEntities();

            ctx.tblVehicles.AddObject(vehicle);

            ctx.SaveChanges();
        }
 /// <summary>
 /// Create a new tblVehicle object.
 /// </summary>
 /// <param name="vehicle_ID_Pk">Initial value of the Vehicle_ID_Pk property.</param>
 public static tblVehicle CreatetblVehicle(global::System.Int32 vehicle_ID_Pk)
 {
     tblVehicle tblVehicle = new tblVehicle();
     tblVehicle.Vehicle_ID_Pk = vehicle_ID_Pk;
     return tblVehicle;
 }
 public void SaveNewVehicleToDB(tblVehicle vehicle)
 {
     var vehicleSaver = new VehicleSaver();
     vehicleSaver.SaveToDB(vehicle);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the tblVehicles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblVehicles(tblVehicle tblVehicle)
 {
     base.AddObject("tblVehicles", tblVehicle);
 }