Skip to content

Commit fb526ba

Browse files
committed
[ksqlDB.RestApi.Client]: enabled specifying of pseudocolumns using the Fluent API's model builder doc #96
1 parent d51c27d commit fb526ba

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/modelbuilder.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,30 @@ public class Record
391391
var modelBuilder = new ModelBuilder();
392392
modelBuilder.Entity<Record>();
393393
```
394+
395+
396+
### AsPseudoColumn
397+
**v6.5.0**
398+
399+
The `AsPseudoColumn` function designates fields or properties in entity types as `ksqlDB` [pseudocolumns](https://docs.ksqldb.io/en/latest/reference/sql/data-definition/#pseudocolumns)..
400+
Pseudocolumn [identifiers](https://docs.ksqldb.io/en/latest/reference/sql/syntax/lexical-structure/#identifiers)
401+
are not **backticked** in case of `IdentifierEscaping.Always` or `IdentifierEscaping.Keywords`.
402+
403+
```C#
404+
builder.Entity<Record>()
405+
.Property(c => c.RowTime)
406+
.AsPseudoColumn();
407+
```
408+
409+
```C#
410+
public class Record
411+
{
412+
public long RowTime { get; }
413+
}
414+
```
415+
416+
Valid pseudocolumn names are:
417+
- Headers
418+
- RowOffset
419+
- RowPartition
420+
- RowTime

0 commit comments

Comments
 (0)