Ejemplo n.º 1
0
 // constructor 3
 public DbDefSource(IDatabaseStructure db, ReadOnly flag)
 {
     m_readOnlyStructure = new DatabaseStructure(db);
     m_readOnlyStructure.MarkAllFilled();
     m_openedReadOnly = true;
     m_conn           = new DbDefConnection(m_readOnlyStructure);
 }
Ejemplo n.º 2
0
        public override IPhysicalConnection Clone()
        {
            DbDefConnection res = (DbDefConnection)base.Clone();

            if (m_db != null)
            {
                res.m_db            = new DatabaseStructure(m_db);
                res.m_fileTimeStamp = m_fileTimeStamp;
            }
            return(res);
        }
Ejemplo n.º 3
0
 // constructor 3'
 public DbDefSource(IPhysicalConnectionFactory fact, ReadOnly flag)
 {
     m_conn           = (DbDefConnection)fact.CreateConnection();
     m_openedReadOnly = true;
 }
Ejemplo n.º 4
0
        //public DbDefSource(Func<string> getCurrentFileName)
        //{
        //    m_conn = new DbDefConnection(getCurrentFileName);
        //}

        public DbDefSource(DbDefConnection conn)
        {
            m_conn = conn;
        }
Ejemplo n.º 5
0
 public DbDefSource(string file)
 {
     m_conn = new DbDefConnection(file);
 }