internal PersonTable(PersonDatabase database) : base() { Database = database; Birthdate = AddColumn(nameof(Birthdate), database.BuildColumn <DateTime>(nameof(Person), nameof(Birthdate), default)); Name = AddColumn(nameof(Name), database.BuildColumn <string>(nameof(Person), nameof(Name), default)); }
public override void GetOrBuildColumns() { Birthdate = GetOrBuild(nameof(Birthdate), () => Database.BuildColumn <DateTime>(nameof(Person), nameof(Birthdate), default)); Name = GetOrBuild(nameof(Name), () => Database.BuildColumn <string>(nameof(Person), nameof(Name), default)); }