Esempio n. 1
0
        public PersonDatabase()
        {
            _lastCreated = new WeakReference <PersonDatabase>(this);

            Person    = AddTable(nameof(Person), new PersonTable(this));
            Community = AddTable(nameof(Community), new CommunityTable(this));
        }
Esempio n. 2
0
 internal Community(CommunityTable table, int index)
 {
     this._table = table;
     this._index = index;
 }
Esempio n. 3
0
 internal Community(CommunityTable table) : this(table, table.Count)
 {
     table.Add();
 }
Esempio n. 4
0
 public override void GetOrBuildTables()
 {
     Person    = GetOrBuild(nameof(Person), () => new PersonTable(this));
     Community = GetOrBuild(nameof(Community), () => new CommunityTable(this));
 }
Esempio n. 5
0
 internal Community(CommunityTable table) : this(table, table.Add()._index)
 {
     Init();
 }
Esempio n. 6
0
 void IRow.Remap(ITable table, int index)
 {
     _table = (CommunityTable)table;
     _index = index;
 }