{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3054","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3054/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3054/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3054/events","html_url":"https://github.com/aspnet/EntityFramework/issues/3054","id":105380110,"number":3054,"title":"Check if all migration is done in beta7 GetUnappliedMigrations()","user":{"login":"Anderman","id":1858745,"avatar_url":"https://avatars.githubusercontent.com/u/1858745?v=3","gravatar_id":"","url":"https://api.github.com/users/Anderman","html_url":"https://github.com/Anderman","followers_url":"https://api.github.com/users/Anderman/followers","following_url":"https://api.github.com/users/Anderman/following{/other_user}","gists_url":"https://api.github.com/users/Anderman/gists{/gist_id}","starred_url":"https://api.github.com/users/Anderman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anderman/subscriptions","organizations_url":"https://api.github.com/users/Anderman/orgs","repos_url":"https://api.github.com/users/Anderman/repos","events_url":"https://api.github.com/users/Anderman/events{/privacy}","received_events_url":"https://api.github.com/users/Anderman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-08T13:27:31Z","updated_at":"2015-09-08T17:08:28Z","closed_at":null,"body":"I used GetUnappliedMigrations in beta6 to check if migrations was done.\r\nWhat should I use in beta7 to check all migration is done?\r\n```\r\npublic bool AllMigrationsApplied()         { \r\n   return !((IMigrator ((IAccessor<IServiceProvider>)Database).Service.GetService(typeof(IMigrator))).GetUnappliedMigrations().Any();        \r\n }\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/138636480","html_url":"https://github.com/aspnet/EntityFramework/issues/3054#issuecomment-138636480","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3054","id":138636480,"user":{"login":"bricelam","id":1226749,"avatar_url":"https://avatars.githubusercontent.com/u/1226749?v=3","gravatar_id":"","url":"https://api.github.com/users/bricelam","html_url":"https://github.com/bricelam","followers_url":"https://api.github.com/users/bricelam/followers","following_url":"https://api.github.com/users/bricelam/following{/other_user}","gists_url":"https://api.github.com/users/bricelam/gists{/gist_id}","starred_url":"https://api.github.com/users/bricelam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricelam/subscriptions","organizations_url":"https://api.github.com/users/bricelam/orgs","repos_url":"https://api.github.com/users/bricelam/repos","events_url":"https://api.github.com/users/bricelam/events{/privacy}","received_events_url":"https://api.github.com/users/bricelam/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T17:08:28Z","updated_at":"2015-09-08T17:08:28Z","body":"```C#\r\npublic bool AllMigrationsApplied()\r\n    => !((IAccessor<IServiceProvider>)this).GetService<IHistoryRepository>()\r\n        .GetAppliedMigrations().Any();\r\n```"}}