public PersonDatabase()
        {
            _lastCreated = new WeakReference <PersonDatabase>(this);

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