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 int CreateSearchSession()
        {
            var searchSession = new tblSearchSession()
                                   {
                                       Search_Session_Timestamp = DateTime.Now

                                   };

               // add search session to db
               int searchSessionID = AddSearchSessionToDb(searchSession);

               return searchSessionID;
        }
 private int AddSearchSessionToDb(tblSearchSession searchSession)
 {
     var dbWriter = new DBWriter();
        int searchSessionID = dbWriter.InsertSearchSession(searchSession);
        return searchSessionID;
 }
 /// <summary>
 /// Create a new tblSearchSession object.
 /// </summary>
 /// <param name="search_Session_ID_PK">Initial value of the Search_Session_ID_PK property.</param>
 public static tblSearchSession CreatetblSearchSession(global::System.Int32 search_Session_ID_PK)
 {
     tblSearchSession tblSearchSession = new tblSearchSession();
     tblSearchSession.Search_Session_ID_PK = search_Session_ID_PK;
     return tblSearchSession;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the tblSearchSessions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblSearchSessions(tblSearchSession tblSearchSession)
 {
     base.AddObject("tblSearchSessions", tblSearchSession);
 }