dotnet / dotnet/Scaffolding

Input Check styling

Open
#2,652 2 comments 0 reactions 1 assignee Claimed by @vendasankarsf3945 View on GitHub
area-blazor area-scaffolding customer-reported
Dominant language
C#
Stars
818
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
10

Description

I've scaffold the following class, when the input check is scaffolded it looks like this
![image](https://github.com/dotnet/Scaffolding/assets/137999007/893b33f4-fa07-4241-9167-b526a54a1a65)

`namespace BlazorApp5Rubbish
{
using System.ComponentModel.DataAnnotations;

public class Employee
{
public int Id { get; set; }

[Required]
[MaxLength(100)]
public string? Name { get; set; }

[Required]
public EmployeeType EmployeeType { get; set; }

[Required]
[DataType(DataType.Date)]
public DateTime? DateOfBirth { get; set; }

[Required]
[MaxLength(255)]
public string? EmailAddress { get; set; }

public bool IsActive { get; set; }
}

public enum EmployeeType
{
Permanant = 0,
Contract = 1
}
}
`

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.