Add a method signature to ICodeFirstTypeProvider #101
Labels
enhancement
good first issue
groomed
The issue has been groomed and should be in a good shape.
help wanted
up-for-grabs
Milestone
Motivation
The Delivery API allows filtering of content items by their type. The SDK allows for specifying strong types that reflect content types of those items. The developer may request strongly typed items via
To remove the burden of specifying the type twice (see above), we've implemented a
ContentTypeExtractor
class that uses reflection to automatically add theEqualsFilter
in the background.To get around using reflection, we could make our code generators also generate a dictionary inside of an
ICodeFirstTypeProvider
class that would return a codename for a particularSystem.Type
.Howto
To make the above possible, add a
GetCodename
method to the ICodeFirstTypeProvider interface that acceptsSystem.Type
as a parameter.Then, we could implement kontent-ai/model-generator-net#61 .
The text was updated successfully, but these errors were encountered: