示例#1
0
        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));
        }
示例#2
0
 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));
 }