예제 #1
0
        public void SaveToDB(tblVehicle vehicle)
        {
            var ctx = new seleniumScrapeEntities();

            ctx.tblVehicles.AddObject(vehicle);

            ctx.SaveChanges();
        }
예제 #2
0
        public int InsertSearchSession(tblSearchSession searchSession)
        {
            // Create database context.
            var ctx = new seleniumScrapeEntities();

            ctx.tblSearchSessions.AddObject(searchSession);
            ctx.SaveChanges();

            return(searchSession.Search_Session_ID_PK);
        }
예제 #3
0
 public void SaveChanges <T>()
 {
     _ctx.SaveChanges();
 }