Skip to content
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

Need to have ability to exclude specific entities or properties #2

Closed
kraghavk opened this issue Feb 17, 2022 · 2 comments
Closed

Need to have ability to exclude specific entities or properties #2

kraghavk opened this issue Feb 17, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@kraghavk
Copy link

I love the idea behind this project. This is great and I am looking forward to this becoming more mature, stable and famous!

The following configuration options might be required in a lot of cases:

  1. Exclude specific entities: I might be fine with exposing a 100 other entities within my DbContext in this way. But I need the ability to exclude some (for example User entity), so that I can create my own endpoints with my own business logic for it.
  2. Exclude specific properties of an entity: In some cases, there may be properties that are not meant to be modified directly by a PUT or a POST request. For example, columns that are updated behind the scenes via some business logic.

Thanks,
Raghu

@csharpfritz csharpfritz mentioned this issue Feb 17, 2022
4 tasks
@csharpfritz csharpfritz added the enhancement New feature or request label Feb 17, 2022
@verbedr
Copy link
Contributor

verbedr commented Feb 19, 2022

Suggestion for the properties. In true DDD fashion, they need to be read-only (private setter). Could this work? It would drop the need for complex configuration of includes/excludes.

@kraghavk
Copy link
Author

kraghavk commented Feb 19, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants