Skip to content

Model building API: additional configurability of the default conversion for any property of a given type #20418

Description

@vslee

Once #10784 is complete, a future enhancement might be to add overloads for even more configurability. For example:

IsRequired(Func<IPropertyBase,bool> predicate)
HasComment(Func<IPropertyBase,string> selector)

Used as:

b.IsRequired(p => p.Name.StartsWith('a')) // only make properties starting with 'a' required
b.HasComment(p => $"{p.Name} is a special column") // ability to use the property name in the comment

This would likely need design / api review given how many different permutations and possibilities there are.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions