{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6914","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6914/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6914/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6914/events","html_url":"https://github.com/aspnet/EntityFramework/issues/6914","id":186510166,"number":6914,"title":"Method not found: 'System.String Microsoft.EntityFrameworkCore.Metadata.Internal.EntityTypeExtensions.DisplayName(Microsoft.EntityFrameworkCore.Metadata.IEntityType)'.","user":{"login":"lee-alderdice","id":11538808,"avatar_url":"https://avatars.githubusercontent.com/u/11538808?v=3","gravatar_id":"","url":"https://api.github.com/users/lee-alderdice","html_url":"https://github.com/lee-alderdice","followers_url":"https://api.github.com/users/lee-alderdice/followers","following_url":"https://api.github.com/users/lee-alderdice/following{/other_user}","gists_url":"https://api.github.com/users/lee-alderdice/gists{/gist_id}","starred_url":"https://api.github.com/users/lee-alderdice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lee-alderdice/subscriptions","organizations_url":"https://api.github.com/users/lee-alderdice/orgs","repos_url":"https://api.github.com/users/lee-alderdice/repos","events_url":"https://api.github.com/users/lee-alderdice/events{/privacy}","received_events_url":"https://api.github.com/users/lee-alderdice/received_events","type":"User","site_admin":false},"labels":[{"id":403964217,"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/closed-fixed","name":"closed-fixed","color":"777777","default":false},{"id":76481852,"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/type-bug","name":"type-bug","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":{"login":"ajcvickers","id":1430078,"avatar_url":"https://avatars.githubusercontent.com/u/1430078?v=3","gravatar_id":"","url":"https://api.github.com/users/ajcvickers","html_url":"https://github.com/ajcvickers","followers_url":"https://api.github.com/users/ajcvickers/followers","following_url":"https://api.github.com/users/ajcvickers/following{/other_user}","gists_url":"https://api.github.com/users/ajcvickers/gists{/gist_id}","starred_url":"https://api.github.com/users/ajcvickers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajcvickers/subscriptions","organizations_url":"https://api.github.com/users/ajcvickers/orgs","repos_url":"https://api.github.com/users/ajcvickers/repos","events_url":"https://api.github.com/users/ajcvickers/events{/privacy}","received_events_url":"https://api.github.com/users/ajcvickers/received_events","type":"User","site_admin":false},"assignees":[{"login":"ajcvickers","id":1430078,"avatar_url":"https://avatars.githubusercontent.com/u/1430078?v=3","gravatar_id":"","url":"https://api.github.com/users/ajcvickers","html_url":"https://github.com/ajcvickers","followers_url":"https://api.github.com/users/ajcvickers/followers","following_url":"https://api.github.com/users/ajcvickers/following{/other_user}","gists_url":"https://api.github.com/users/ajcvickers/gists{/gist_id}","starred_url":"https://api.github.com/users/ajcvickers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajcvickers/subscriptions","organizations_url":"https://api.github.com/users/ajcvickers/orgs","repos_url":"https://api.github.com/users/ajcvickers/repos","events_url":"https://api.github.com/users/ajcvickers/events{/privacy}","received_events_url":"https://api.github.com/users/ajcvickers/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/23","html_url":"https://github.com/aspnet/EntityFramework/milestones/1.1.0","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/23/labels","id":2038420,"number":23,"title":"1.1.0","description":"","creator":{"login":"divega","id":1253414,"avatar_url":"https://avatars.githubusercontent.com/u/1253414?v=3","gravatar_id":"","url":"https://api.github.com/users/divega","html_url":"https://github.com/divega","followers_url":"https://api.github.com/users/divega/followers","following_url":"https://api.github.com/users/divega/following{/other_user}","gists_url":"https://api.github.com/users/divega/gists{/gist_id}","starred_url":"https://api.github.com/users/divega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divega/subscriptions","organizations_url":"https://api.github.com/users/divega/orgs","repos_url":"https://api.github.com/users/divega/repos","events_url":"https://api.github.com/users/divega/events{/privacy}","received_events_url":"https://api.github.com/users/divega/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":9,"state":"open","created_at":"2016-09-29T18:34:36Z","updated_at":"2016-11-03T01:28:15Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2016-11-01T11:14:18Z","updated_at":"2016-11-03T01:28:15Z","closed_at":null,"body":"Hi.  I have read #6865, #6855, and https://blogs.msdn.microsoft.com/dotnet/2016/10/25/announcing-entity-framework-core-1-1-preview-1/ from the release.\r\n\r\nI am trying to run `Scaffold-DbContext \"Server=(A);Database=B;Trusted_Connection=True;\" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Verbose`\r\n\r\nI am getting the error Method Not Found as per the title (full error at the bottom).  To try and resolve this I have \r\n\r\n- updated the listed packages as detailed in the release blog.  \r\n- Kept using netcore 1.0.0\r\n- run dotnet restore (many times)\r\n- restarted VS and my machine (many times)\r\n\r\nI have read that I may need to delete the Entity Framework directory under %USERPROFILE%/.nuget ... but that seems a bit drastic.\r\n\r\nBelow is my project.json ... I think I a missing something small and would appreciate any pointers to help through this.  I did try rolling back to preview2-final on tools but it all seems to have gone a bit wrong.\r\n\r\n`{\r\n  \"dependencies\": {\r\n    \"Microsoft.AspNetCore.Authentication\": \"1.0.0\",\r\n    \"Microsoft.AspNetCore.Authentication.Cookies\": \"1.0.0\",\r\n    \"Microsoft.AspNetCore.Authorization\": \"1.0.0\",\r\n    \"Microsoft.AspNetCore.Diagnostics\": \"1.0.0\",\r\n    \"Microsoft.AspNetCore.Identity\": \"1.0.0\",\r\n    \"Microsoft.AspNetCore.Mvc\": \"1.0.1\",\r\n    \"Microsoft.AspNetCore.Razor.Tools\": {\r\n      \"version\": \"1.0.0-preview2-final\",\r\n      \"type\": \"build\"\r\n    },\r\n    \"Microsoft.AspNetCore.Routing\": \"1.0.1\",\r\n    \"Microsoft.AspNetCore.Server.IISIntegration\": \"1.0.0\",\r\n    \"Microsoft.AspNetCore.Server.Kestrel\": \"1.0.1\",\r\n    \"Microsoft.AspNetCore.Session\": \"1.0.0\",\r\n    \"Microsoft.AspNetCore.StaticFiles\": \"1.0.0\",\r\n    \"Microsoft.EntityFrameworkCore.Design\": \"1.0.1\",\r\n    \"Microsoft.EntityFrameworkCore.SqlServer\": \"1.1.0-preview1-final\",\r\n    \"Microsoft.EntityFrameworkCore.SqlServer.Design\": \"1.1.0-preview1-final\",\r\n    \"Microsoft.EntityFrameworkCore.Tools.DotNet\": \"1.0.0-preview3-final\",\r\n    \"Microsoft.Extensions.Configuration.EnvironmentVariables\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Configuration.Json\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Logging\": \"1.1.0-preview1-final\",\r\n    \"Microsoft.Extensions.Logging.Console\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Logging.Debug\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Options.ConfigurationExtensions\": \"1.0.0\",\r\n    \"Microsoft.NETCore.App\": {\r\n      \"version\": \"1.0.1\",\r\n      \"type\": \"platform\"\r\n    },\r\n    \"Microsoft.VisualStudio.Web.BrowserLink.Loader\": \"14.0.0\",\r\n    \"Microsoft.VisualStudio.Web.CodeGeneration.Tools\": {\r\n      \"version\": \"1.0.0-preview2-final\",\r\n      \"type\": \"build\"\r\n    },\r\n    \"Microsoft.VisualStudio.Web.CodeGenerators.Mvc\": {\r\n      \"version\": \"1.0.0-preview2-final\",\r\n      \"type\": \"build\"\r\n    }\r\n  },\r\n\r\n  \"tools\": {\r\n    \"BundlerMinifier.Core\": \"2.0.238\",\r\n    \"Microsoft.AspNetCore.Razor.Tools\": \"1.0.0-preview2-final\",\r\n    \"Microsoft.AspNetCore.Server.IISIntegration.Tools\": \"1.0.0-preview2-final\",\r\n    \"Microsoft.VisualStudio.Web.CodeGeneration.Tools\": {\r\n      \"version\": \"1.0.0-preview2-final\",\r\n      \"imports\": [\r\n        \"portable-net45+win8\"\r\n      ]\r\n    }\r\n  },\r\n\r\n  \"frameworks\": {\r\n    \"netcoreapp1.0\": {\r\n      \"imports\": [\r\n        \"dotnet5.6\",\r\n        \"portable-net45+win8\"\r\n      ]\r\n    }\r\n  },\r\n\r\n  \"buildOptions\": {\r\n    \"emitEntryPoint\": true,\r\n    \"preserveCompilationContext\": true\r\n  },\r\n\r\n  \"runtimeOptions\": {\r\n    \"configProperties\": {\r\n      \"System.GC.Server\": true\r\n    }\r\n  },\r\n\r\n  \"publishOptions\": {\r\n    \"include\": [\r\n      \"wwwroot\",\r\n      \"**/*.cshtml\",\r\n      \"appsettings.json\",\r\n      \"web.config\"\r\n    ]\r\n  },\r\n\r\n  \"scripts\": {\r\n    \"prepublish\": [ \"bower install\", \"dotnet bundle\" ],\r\n    \"postpublish\": [ \"dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%\" ]\r\n  }\r\n}\r\n`\r\nand here is the full error message ...\r\n\r\n`System.MissingMethodException: Method not found: 'System.String Microsoft.EntityFrameworkCore.Metadata.Internal.EntityTypeExtensions.DisplayName(Microsoft.EntityFrameworkCore.Metadata.IEntityType)'.\r\n   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.StringBuilderCodeWriter.WriteCodeAsync(ModelConfiguration modelConfiguration, String outputPath, String dbContextClassName, CancellationToken cancellationToken)\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 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"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/258046921","html_url":"https://github.com/aspnet/EntityFramework/issues/6914#issuecomment-258046921","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6914","id":258046921,"user":{"login":"divega","id":1253414,"avatar_url":"https://avatars.githubusercontent.com/u/1253414?v=3","gravatar_id":"","url":"https://api.github.com/users/divega","html_url":"https://github.com/divega","followers_url":"https://api.github.com/users/divega/followers","following_url":"https://api.github.com/users/divega/following{/other_user}","gists_url":"https://api.github.com/users/divega/gists{/gist_id}","starred_url":"https://api.github.com/users/divega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divega/subscriptions","organizations_url":"https://api.github.com/users/divega/orgs","repos_url":"https://api.github.com/users/divega/repos","events_url":"https://api.github.com/users/divega/events{/privacy}","received_events_url":"https://api.github.com/users/divega/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T01:28:15Z","updated_at":"2016-11-03T01:28:15Z","body":"Here is some additional information from pushing the SapientGuardian provider through NGen (similar to #6783):\r\n\r\n```\r\nWarning: System.MissingMethodException: Method not found: 'Void Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal.ContainsTranslator..ctor()'. while resolving 0xa000023 - Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal.ContainsTranslator..ctor.\r\nWarning: System.MissingMethodException: Method not found: 'Void Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal.EndsWithTranslator..ctor()'. while resolving 0xa000037 - Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal.EndsWithTranslator..ctor.\r\nWarning: System.MissingMethodException: Method not found: 'Void Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal.StartsWithTranslator..ctor()'. while resolving 0xa00003a - Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal.StartsWithTranslator..ctor.\r\nMethod not found: 'Void Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal.ContainsTranslator..ctor()'. while compiling method MySqlContainsTranslator..ctor\r\nMethod not found: 'Void Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal.EndsWithTranslator..ctor()'. while compiling method MySQLCompositeMethodCallTranslator..ctor\r\n```\r\n\r\nThe cause is that we removed the parameterless constructors from string method translators in 5e1c562ae40c16ef49b90731fd015eccce0c1d44. \r\n\r\nWe should decide in triage whether we want to fix this for the same reason we reverted the removal of `EntityTypeExtensions.DisplayName()` or whether we want to treat this with the default bar for internal types."}}
{"actor":{"display_login":"divega"}}