dotnet / dotnet/Scaffolding

Scaffolding MVC Controller with views, using Entity Framework generates Delete view with error

Open
#1,624 1 comment 0 reactions 1 assignee Claimed by @deepchoudhery View on GitHub
area-scaffolding
Dominant language
C#
Stars
818
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
10

Description

Used the following model for Scaffolding MVC Controller with views, using Entity Framework:
```
public class CategoryModel
{
public int Id { get; set; }
public string Name { get; set; }

public int? ParentId { get; set; }
public CategoryModel Parent { get; set; }
}
```
As a results there is an extra "class" attribute inside the closing tag in Delete.cshtml:
![image](https://user-images.githubusercontent.com/18004609/130464815-49a8c15d-3708-4dba-9d79-e96bdf7f9567.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.