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

Problem generating ContextModelSnapshot #35747

Open
drma-tech opened this issue Mar 7, 2025 · 0 comments
Open

Problem generating ContextModelSnapshot #35747

drma-tech opened this issue Mar 7, 2025 · 0 comments

Comments

@drma-tech
Copy link

drma-tech commented Mar 7, 2025

Bug description

When you add or remove migrations, a lot of garbage is generated in the code, making it difficult to analyze the changes in git.

Image

Your code

Any code generates this behavior. The important thing is to call add-migration or remove-migration. It is always adding or removing this (string)null. for literally all tables. And this generates a lot of garbage in the code and when we are going to analyze the changes in the class before committing, it becomes very difficult because of this.

There has to be a standard for both actions. Either always put this or never put this.

EF Core version

9

Database provider

No response

Target framework

No response

Operating system

No response

IDE

No response

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

No branches or pull requests

3 participants