Skip to content

How to know the migration is completed? #1548

Answered by hengwayong
hengwayong asked this question in Q&A
Discussion options

You must be logged in to vote

@fubar-coder @jzabroski Thank you for the feedback. I am not using the migrator in CLI but in-process, after read the documentation, so far do not found the call back mechanism you mentioned. Possible to share me the direction of call back mechanism?

Below is the code that I'm using to run the migrator

public void Migrate()
        {
            var serviceProvider = CreateServices();
            if (serviceProvider == null)
            {
                OnException("Create service fail");
            }
            else
            {
                using (var scope = serviceProvider.CreateScope())
                {
                    UpdateDatabase(scope.ServiceProvider);
              …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jzabroski
Comment options

@hengwayong
Comment options

Answer selected by jzabroski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1546 on December 07, 2021 14:57.