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
94 stars 25 forks source link

Enhancing Fluent API: Implementing the HasColumnName Method #82

Closed tomasfabian closed 3 months ago

tomasfabian commented 4 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.