Exemple #1
0
        public FileSystemDatabase()
        {
            _lastCreated = new WeakReference <FileSystemDatabase>(this);

            File       = AddTable(nameof(File), new FileTable(this));
            Folder     = AddTable(nameof(Folder), new FolderTable(this));
            FileSystem = AddTable(nameof(FileSystem), new FileSystemTable(this));
        }
Exemple #2
0
 public override void GetOrBuildTables()
 {
     File       = GetOrBuild(nameof(File), () => new FileTable(this));
     Folder     = GetOrBuild(nameof(Folder), () => new FolderTable(this));
     FileSystem = GetOrBuild(nameof(FileSystem), () => new FileSystemTable(this));
 }
Exemple #3
0
 internal FileSystem(FileSystemTable table) : this(table, table.Add()._index)
 {
     Init();
 }
Exemple #4
0
 internal FileSystem(FileSystemTable table, int index)
 {
     this._table = table;
     this._index = index;
 }
Exemple #5
0
 void IRow.Remap(ITable table, int index)
 {
     _table = (FileSystemTable)table;
     _index = index;
 }