Skip to content

Fluent API for resources' configuration #849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
poneymusical opened this issue Oct 2, 2020 · 2 comments
Closed

Fluent API for resources' configuration #849

poneymusical opened this issue Oct 2, 2020 · 2 comments

Comments

@poneymusical
Copy link

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!

@poneymusical
Copy link
Author

Sorry, just found out there's another issue covering this

@alastairtree
Copy link

Over at #776 in case others are looking for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants