You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't seen this in the docs nor the open issues.
Description
It would be great to have the possibility to use a fluent API instead of attributes for the resources' configuration, a bit like the fluent API in EF core. Some of us like to keep their entities devoid of any attributes, and overriding the properties just to add attributes seems kind of hacky.
One could imagine having an interface like IResourceConfiguration<TResource> or IResourceConfiguation<TResource, TId> that could be implemented for each resource, very much like IEntityTypeConfiguration<TEntity> in EF Core.
I have no clear idea on how to implement this, as I've only discovered this lib, but it's been great so far and I think it would be a valuable addition.
Thanks in advance for your feedback!
The text was updated successfully, but these errors were encountered:
I haven't seen this in the docs nor the open issues.
Description
It would be great to have the possibility to use a fluent API instead of attributes for the resources' configuration, a bit like the fluent API in EF core. Some of us like to keep their entities devoid of any attributes, and overriding the properties just to add attributes seems kind of hacky.
One could imagine having an interface like
IResourceConfiguration<TResource>
orIResourceConfiguation<TResource, TId>
that could be implemented for each resource, very much likeIEntityTypeConfiguration<TEntity>
in EF Core.I have no clear idea on how to implement this, as I've only discovered this lib, but it's been great so far and I think it would be a valuable addition.
Thanks in advance for your feedback!
The text was updated successfully, but these errors were encountered: