Example #1
0
 private void open()
 {
     if (m_db == null)
     {
         m_db = new mobilespyEntities();
     }
     if (m_tran == null)
     {
         m_tran = new TransactionScope();
     }
 }
Example #2
0
 private void close()
 {
     if (m_tran != null)
     {
         m_tran.Dispose();
         m_tran = null;
     }
     if (m_db != null)
     {
         m_db.Dispose();
         m_db = null;
     }
 }
Example #3
0
 internal dContact(mobilespyEntities db, Int64 id)
 {
     m_db = db;
     m_id = id;
 }
Example #4
0
 internal dDevice(mobilespyEntities db, Int64 session)
 {
     m_db      = db;
     m_session = session;
 }