{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/7068","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/7068/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/7068/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/7068/events","html_url":"https://github.com/aspnet/EntityFramework/issues/7068","id":190514504,"number":7068,"title":"Problem with database first scaffolding","user":{"login":"matjazmav","id":9011654,"avatar_url":"https://avatars.githubusercontent.com/u/9011654?v=3","gravatar_id":"","url":"https://api.github.com/users/matjazmav","html_url":"https://github.com/matjazmav","followers_url":"https://api.github.com/users/matjazmav/followers","following_url":"https://api.github.com/users/matjazmav/following{/other_user}","gists_url":"https://api.github.com/users/matjazmav/gists{/gist_id}","starred_url":"https://api.github.com/users/matjazmav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matjazmav/subscriptions","organizations_url":"https://api.github.com/users/matjazmav/orgs","repos_url":"https://api.github.com/users/matjazmav/repos","events_url":"https://api.github.com/users/matjazmav/events{/privacy}","received_events_url":"https://api.github.com/users/matjazmav/received_events","type":"User","site_admin":false},"labels":[{"id":382563988,"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/tools","name":"tools","color":"68217a","default":false},{"id":76481852,"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/type-bug","name":"type-bug","color":"f7c6c7","default":false}],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/24","html_url":"https://github.com/aspnet/EntityFramework/milestones/1.2.0","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/24/labels","id":2044943,"number":24,"title":"1.2.0","description":null,"creator":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"open_issues":151,"closed_issues":50,"state":"open","created_at":"2016-10-03T18:11:14Z","updated_at":"2016-11-29T20:27:04Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-11-19T19:15:04Z","updated_at":"2016-11-29T20:27:04Z","closed_at":"2016-11-29T20:27:03Z","body":"I'm having problem with scaffolding `DbContext`. I'm using latest `.NET Core 1.1.0 SDK`. I'm following this guide: [https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-db](https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-db)\r\n\r\nBut when I run following command in Package Manager Console: `Scaffold-DbContext \"<connection-string>\"  Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models` I get exception.\r\n\r\n**project.json**\r\n\r\n      \"dependencies\": {\r\n        \"Microsoft.EntityFrameworkCore\": \"1.1.0\",\r\n        \"Microsoft.EntityFrameworkCore.Design\": \"1.1.0\",\r\n        \"Microsoft.EntityFrameworkCore.SqlServer\": \"1.1.0\",\r\n        \"Microsoft.EntityFrameworkCore.SqlServer.Design\": \"1.1.0\",\r\n        \"Microsoft.EntityFrameworkCore.Tools\": \"1.1.0-preview4-final\",\r\n        \"NETStandard.Library\": \"1.6.1\"\r\n      },\r\n    \r\n      \"tools\": {\r\n        \"Microsoft.EntityFrameworkCore.Tools\": \"1.1.0-preview4-final\"\r\n      },\r\n    \r\n      \"frameworks\": {\r\n        \"netstandard1.6\": {\r\n          \"imports\": [\r\n            \"dnxcore50\"\r\n          ]\r\n        }\r\n      }\r\n\r\n**Exception**\r\n\r\n    System.IO.FileNotFoundException: Could not load file or assembly \r\n    'System.Data.SqlClient, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.\r\n    File name: 'System.Data.SqlClient, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'\r\n       at Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqlServerDatabaseModelFactory.Create(String connectionString, TableSelectionSet tableSelectionSet)\r\n       at Microsoft.EntityFrameworkCore.Scaffolding.RelationalScaffoldingModelFactory.Create(String connectionString, TableSelectionSet tableSelectionSet)\r\n       at Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqlServerScaffoldingModelFactory.Create(String connectionString, TableSelectionSet tableSelectionSet)\r\n       at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineeringGenerator.GetMetadataModel(ReverseEngineeringConfiguration configuration)\r\n       at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineeringGenerator.GenerateAsync(ReverseEngineeringConfiguration configuration, CancellationToken cancellationToken)\r\n       at Microsoft.EntityFrameworkCore.Design.Internal.DatabaseOperations.ScaffoldContextAsync(String provider, String connectionString, String outputDir, String dbContextClassName, IEnumerable`1 schemas, IEnumerable`1 tables, Boolean useDataAnnotations, Boolean overwriteFiles, CancellationToken cancellationToken)\r\n       at Microsoft.EntityFrameworkCore.Design.OperationExecutor.<ScaffoldContextImpl>d__22.MoveNext()\r\n       at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source, Int32& length)\r\n       at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)\r\n       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n       at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass4_0`1.<Execute>b__0()\r\n       at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)\r\n    Could not load file or assembly 'System.Data.SqlClient, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified."}}
{"actor":{"display_login":"bricelam"}}