{"action":"closed","issue":{"url":"https://api.github.com/repos/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars/issues/23","repository_url":"https://api.github.com/repos/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars","labels_url":"https://api.github.com/repos/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars/issues/23/comments","events_url":"https://api.github.com/repos/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars/issues/23/events","html_url":"https://github.com/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars/issues/23","id":326814939,"number":23,"title":"NullReferenceException in CheckOutputFiles","user":{"login":"andredahlqvist","id":38076894,"avatar_url":"https://avatars0.githubusercontent.com/u/38076894?v=4","gravatar_id":"","url":"https://api.github.com/users/andredahlqvist","html_url":"https://github.com/andredahlqvist","followers_url":"https://api.github.com/users/andredahlqvist/followers","following_url":"https://api.github.com/users/andredahlqvist/following{/other_user}","gists_url":"https://api.github.com/users/andredahlqvist/gists{/gist_id}","starred_url":"https://api.github.com/users/andredahlqvist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andredahlqvist/subscriptions","organizations_url":"https://api.github.com/users/andredahlqvist/orgs","repos_url":"https://api.github.com/users/andredahlqvist/repos","events_url":"https://api.github.com/users/andredahlqvist/events{/privacy}","received_events_url":"https://api.github.com/users/andredahlqvist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-27T13:05:44Z","updated_at":"2018-05-27T15:43:11Z","closed_at":"2018-05-27T15:43:11Z","author_association":"NONE","body":"I'm using .NET Core 2.1.300-rc1-008673 and have updated to 1.0.0-rc3 of EntityFrameworkCore.Scaffolding.Handlebars. I get the following NullPointer when trying to scaffold from an existing database. I have previously used 1.0.0-beta together with .NET Core 2.0 and have successfully scaffolded using the same database.\r\n\r\nUnable to generate entity type for table 'dbo.SavedRadioButtons'.\r\nThe column 'dbo.NoteResources.IsActive' would normally be mapped to a non-nullable bool property, but it has a default constraint. Such a column is mapped to a nullable bool property to allow a difference between setting the property to false and invoking the default constraint. See https://go.microsoft.com/fwlink/?linkid=851278 for details.\r\nSystem.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineerScaffolder.CheckOutputFiles(ScaffoldedModel scaffoldedModel, String outputDir, Boolean overwriteFiles)\r\n   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineerScaffolder.Save(ScaffoldedModel scaffoldedModel, String outputDir, Boolean overwriteFiles)\r\n   at Microsoft.EntityFrameworkCore.Design.Internal.DatabaseOperations.ScaffoldContext(String provider, String connectionString, String outputDir, String outputContextDir, String dbContextClassName, IEnumerable`1 schemas, IEnumerable`1 tables, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)\r\n   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContextImpl(String provider, String connectionString, String outputDir, String outputDbContextDir, String dbContextClassName, IEnumerable`1 schemaFilters, IEnumerable`1 tableFilters, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)\r\n   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContext.<>c__DisplayClass0_1.<.ctor>b__0()\r\n   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0()\r\n   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)\r\nObject reference not set to an instance of an object.\r\n\r\nI'm using the following command:\r\n\r\ndotnet ef dbcontext scaffold \"Data Source=localhost;Initial Catalog=MyDatabase;User Id=secret; Password=secret\" Microsoft.EntityFrameworkCore.SqlServer -o Domain -c MyDbContext -f"}}
{"actor":{"display_login":"tonysneed"}}