Skip to content

Migrations: Use caller information for better errors #22515

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
Tracked by #22946
bricelam opened this issue Sep 12, 2020 · 0 comments
Open
Tracked by #22946

Migrations: Use caller information for better errors #22515

bricelam opened this issue Sep 12, 2020 · 0 comments

Comments

@bricelam
Copy link
Contributor

bricelam commented Sep 12, 2020

Some errors in migrations could benefit from using [CallerFilePath] and [CallerLineNumber] in the migration builder methods to link the errors back to a specific line number in the migration.

On a related note, we might also be able to use these in the snapshot and designer file to stop manually probing for files during dotnet ef migrations add and remove.

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

No branches or pull requests

2 participants