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

Migrations: Use caller information for better errors #22515

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.

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

2 participants