Skip to content

Problem generating ContextModelSnapshot #35747

@drma-tech

Description

@drma-tech

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions