@enisn I've read that article, but to be honest - your TodoController template could've been achieved (in this form) by creating a generic CrudControllerBase<TDto> and using TDto instead of {{ClassName}} everywhere (except constructor name ;) ). I don't see the value added from using Source Generators to do this, quite the opposite - since you're using a .txt file there's no syntax support/intellisense available when editing it. 🤷♂️
@enisn I've read that article, but to be honest - your
TodoController
template could've been achieved (in this form) by creating a genericCrudControllerBase<TDto>
and usingTDto
instead of{{ClassName}}
everywhere (except constructor name ;) ). I don't see the value added from using Source Generators to do this, quite the opposite - since you're using a.txt
file there's no syntax support/intellisense available when editing it. 🤷♂️