Esempio n. 1
0
        readonly int _rowSize; //Number of bytes in each row

        #endregion Fields

        #region Constructors

        internal Table(Database _database, string name, string path, DataTypes[] types, int size)
        {
            database = _database;
            _name = name;
            _path = path;
            _dataTypes = types;
            _rowSize = size;
            _dataPositions = database.GetPositions(_dataTypes);

            //Open the file but dont close it until the table needs "unloaded"
            _fileStream = File.Open(_path, FileMode.OpenOrCreate);

            GetRowCount();
        }
Esempio n. 2
0
        public DatabaseController()
        {
            Console.WriteLine("Starting DB Controller...");

            database = new Database();
        }