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

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