tomasfabian / ksqlDB.RestApi.Client-DotNet

ksqlDb.RestApi.Client is a C# LINQ-enabled client API for issuing and consuming ksqlDB push and pull queries and executing statements.
MIT License
97 stars 26 forks source link

Enhancing Fluent API: Implementing the HasColumnName Method #82

Closed tomasfabian closed 5 months ago

tomasfabian commented 6 months ago

The Fluent API should enable the definition of how properties and fields are mapped to the record schema. The HasColumnName method can be used to specify custom column names for these properties. Proposed API:

  public interface IFieldTypeBuilder<TProperty>
  {
    IFieldTypeBuilder<TProperty> HasColumnName(string columnName);
  }

This approach serves as an alternative to using the JsonPropertyName attribute for marking properties.