You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When invoking Scaffold-DbContext on a .NET Core project, the powershell generates an incorrect argument list.
Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=northwind;Integrated security=true" Microsoft.EntityFrameworkCore.SqlServer -Verbose -DataAnnotations
Working directory: C:\Users\namc\Documents\Visual Studio 2015\Projects\ConsoleApplication1\ConsoleApp1
Executing command: dotnet ef --verbose --configuration Debug --build-base-path .\bin\ dbcontext scaffold 'Server=(localdb)\mssqllocaldb;Database=northwind;Integrated security=true' Microsoft.EntityFrameworkCore.SqlServer - - d a t a - a n n o t a t i o n s
Microsoft.Extensions.CommandLineUtils.CommandParsingException: Unrecognized option '-' at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.HandleUnexpectedArg(CommandLineApplication command, String[] args, Int32 index, String argTypeName)
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.EntityFrameworkCore.Tools.Cli.Program.Main(String[] args)
Unrecognized option '-'
Somehow, the powershell is adding a space between every letter of --data-annotations
When invoking Scaffold-DbContext on a .NET Core project, the powershell generates an incorrect argument list.
Somehow, the powershell is adding a space between every letter of
--data-annotations
https://github.com/aspnet/EntityFramework/blob/3f67cf09cc66919c9ba3d9295965fa8ad12f98da/src/Microsoft.EntityFrameworkCore.Tools/tools/EntityFramework.psm1#L474-L488
The text was updated successfully, but these errors were encountered: