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
{{ message }}
This repository has been archived by the owner on Apr 11, 2020. It is now read-only.
When I right click on Pages and Add Razor page. I select Razor Pages using Entity Framework (CRUD). I select my Model class and my Data Context class and press Add.
I expect to give the Razor page a name. But a Dialog pops up and says
Add Razor Page(s)
The following file(s) already exist:
Index
Index.cshtml.cs
Do you want to replace them?
Yes No
I do not expect that adding a Razor page will replace Index. I expect to create a NEW razor page with a new name. Saying No here does not allow one to continue.
Steps to reproduce
As above
We ❤ code! Include a complete code listing or attach a simplified project
Create a new ASP.NET Core Web Application. Use ASP.NET Core 3.0 and "Web Application".
Create a model class (Customer with int ID and string Name).
Add Razor Page using EF and CRUD.
Select Model class and add context class.
Click Add
Further technical details
EF Core version: 3.0
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET Core 3.0)
Operating system: Windows 10
IDE: (e.g. Visual Studio 2019 16.3) Visual Studio 2019 16.3.1
The text was updated successfully, but these errors were encountered:
When I right click on Pages and Add Razor page. I select Razor Pages using Entity Framework (CRUD). I select my Model class and my Data Context class and press Add.
I expect to give the Razor page a name. But a Dialog pops up and says
Add Razor Page(s)
The following file(s) already exist:
Index
Index.cshtml.cs
Do you want to replace them?
Yes No
I do not expect that adding a Razor page will replace Index. I expect to create a NEW razor page with a new name. Saying No here does not allow one to continue.
Steps to reproduce
As above
We ❤ code! Include a complete code listing or attach a simplified project
Create a new ASP.NET Core Web Application. Use ASP.NET Core 3.0 and "Web Application".
Create a model class (Customer with int ID and string Name).
Add Razor Page using EF and CRUD.
Select Model class and add context class.
Click Add
Further technical details
EF Core version: 3.0
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET Core 3.0)
Operating system: Windows 10
IDE: (e.g. Visual Studio 2019 16.3) Visual Studio 2019 16.3.1
The text was updated successfully, but these errors were encountered: