{"action":"created","issue":{"url":"https://api.github.com/repos/jincod/dotnetcore-buildpack/issues/46","repository_url":"https://api.github.com/repos/jincod/dotnetcore-buildpack","labels_url":"https://api.github.com/repos/jincod/dotnetcore-buildpack/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/jincod/dotnetcore-buildpack/issues/46/comments","events_url":"https://api.github.com/repos/jincod/dotnetcore-buildpack/issues/46/events","html_url":"https://github.com/jincod/dotnetcore-buildpack/issues/46","id":332664262,"node_id":"MDU6SXNzdWUzMzI2NjQyNjI=","number":46,"title":"Add section about EF migrations to README","user":{"login":"jincod","id":1294432,"node_id":"MDQ6VXNlcjEyOTQ0MzI=","avatar_url":"https://avatars2.githubusercontent.com/u/1294432?v=4","gravatar_id":"","url":"https://api.github.com/users/jincod","html_url":"https://github.com/jincod","followers_url":"https://api.github.com/users/jincod/followers","following_url":"https://api.github.com/users/jincod/following{/other_user}","gists_url":"https://api.github.com/users/jincod/gists{/gist_id}","starred_url":"https://api.github.com/users/jincod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jincod/subscriptions","organizations_url":"https://api.github.com/users/jincod/orgs","repos_url":"https://api.github.com/users/jincod/repos","events_url":"https://api.github.com/users/jincod/events{/privacy}","received_events_url":"https://api.github.com/users/jincod/received_events","type":"User","site_admin":false},"labels":[{"id":363097033,"node_id":"MDU6TGFiZWwzNjMwOTcwMzM=","url":"https://api.github.com/repos/jincod/dotnetcore-buildpack/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-15T06:51:33Z","updated_at":"2018-06-16T18:57:31Z","closed_at":null,"author_association":"OWNER","body":""},"comment":{"url":"https://api.github.com/repos/jincod/dotnetcore-buildpack/issues/comments/397832490","html_url":"https://github.com/jincod/dotnetcore-buildpack/issues/46#issuecomment-397832490","issue_url":"https://api.github.com/repos/jincod/dotnetcore-buildpack/issues/46","id":397832490,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzgzMjQ5MA==","user":{"login":"Tochemey","id":1633645,"node_id":"MDQ6VXNlcjE2MzM2NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/1633645?v=4","gravatar_id":"","url":"https://api.github.com/users/Tochemey","html_url":"https://github.com/Tochemey","followers_url":"https://api.github.com/users/Tochemey/followers","following_url":"https://api.github.com/users/Tochemey/following{/other_user}","gists_url":"https://api.github.com/users/Tochemey/gists{/gist_id}","starred_url":"https://api.github.com/users/Tochemey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tochemey/subscriptions","organizations_url":"https://api.github.com/users/Tochemey/orgs","repos_url":"https://api.github.com/users/Tochemey/repos","events_url":"https://api.github.com/users/Tochemey/events{/privacy}","received_events_url":"https://api.github.com/users/Tochemey/received_events","type":"User","site_admin":false},"created_at":"2018-06-16T18:57:31Z","updated_at":"2018-06-16T18:57:31Z","author_association":"NONE","body":"What I have done to run automatically migration is to do from code in the Startup.cs class in the Configure function with the following code:\r\n\r\n```\r\n            using (var serviceScope = app.ApplicationServices.GetService<IServiceScopeFactory>().CreateScope())\r\n            {\r\n                var context = serviceScope.ServiceProvider.GetRequiredService<DataContext>();\r\n                context.Database.Migrate();\r\n            }\r\n```\r\nBy these I had at five projects on heroku running."}}
{"actor":{"display_login":"Tochemey"}}