Created
July 23, 2019 07:58
-
-
Save ntakouris/0d0a061006045d4d45ed191e75fd7f3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void Dispose() | |
| { | |
| using var serviceScope = _serviceProvider.CreateScope(); | |
| var context = serviceScope.ServiceProvider.GetService<DataContext>(); | |
| context.Database.EnsureDeleted(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment