пятница, 13 марта 2020 г.

Complains about Entity Framework Core


1. Your code compiles without errors. But runtime exceptions await you.

The LINQ expression could not be translated.

2. Your code compiles and works. And you wanted to change the database provider. Your code is still compiling, but runtime exceptions await you.

3. Everything is tracked by default. If you turn off tracking, the navigation stops working.

Lazy-loading is not supported for detached entities

4. "Update" method sets all fields as modified.

5. When db context is disposed?

6. No automatic migrations. Or at least the merger of migrations.

7. This should not exist:
context.Entry(existingBlog).CurrentValues.SetValues();
context.ChangeTracker.TrackGraph()

Комментариев нет:

Отправить комментарий