Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }