public DocumentTable(string name) : base(name) { IdColumn = new SystemColumn("Id", typeof(string), length: 1024, isPrimaryKey: true); Register(IdColumn); EtagColumn = new SystemColumn("Etag", typeof(Guid)); Register(EtagColumn); CreatedAtColumn = new SystemColumn("CreatedAt", typeof(DateTimeOffset)); Register(CreatedAtColumn); ModifiedAtColumn = new SystemColumn("ModifiedAt", typeof(DateTimeOffset)); Register(ModifiedAtColumn); DocumentColumn = new Column("Document", typeof(byte[])); Register(DocumentColumn); MetadataColumn = new Column("Metadata", typeof(byte[])); Register(MetadataColumn); DiscriminatorColumn = new Column("Discriminator", typeof(string), length: 1024); Register(DiscriminatorColumn); AwaitsReprojectionColumn = new Column("AwaitsReprojection", typeof(bool)); Register(AwaitsReprojectionColumn); VersionColumn = new Column("Version", typeof(int)); Register(VersionColumn); }
public IndexTable(string name) : base(name) { //TODO: previously new SqlColumn(DbType.String, 255)...how to use fixed length? TableReferenceColumn = new SystemColumn("TableReference", typeof(string)); Register(TableReferenceColumn); }