public void SaveToDB(tblVehicle vehicle) { var ctx = new seleniumScrapeEntities(); ctx.tblVehicles.AddObject(vehicle); ctx.SaveChanges(); }
public int InsertSearchSession(tblSearchSession searchSession) { // Create database context. var ctx = new seleniumScrapeEntities(); ctx.tblSearchSessions.AddObject(searchSession); ctx.SaveChanges(); return(searchSession.Search_Session_ID_PK); }
public void SaveChanges <T>() { _ctx.SaveChanges(); }