dotnet / dotnet/efcore

Make model validation info/errors easily visible without having to look at logs

Open
#33,202 0 comments 0 reactions 1 assignee Claimed by @AndriySvyryd View on GitHub
area-model-building needs-design
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Currently we emit debug and warning messages when building and validating the model. However, these are missed if the developer is not looking at logs, or is filtering messages. With document modeling, complex types as well as owned types, relationships defined by path, etc. there are more and more places where we want to give feedback on choices made in the model.

Possible ways to make this more visible:

- Analyzer (Not sure it is feasible, but this would be awesome.)
- `dotnet ef validate` or similar
- A runtime method ("ValidateModel") that would be used in the implementation `dotnet ef validate` but can be called directly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.