dotnet / dotnet/Scaffolding

Input select not being generated from Enum

Open
#2,651 1 comment 0 reactions 1 assignee Claimed by @MohamedFasulAshab 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

My class is shown below, when I generate using the Blazor CRUD Scaffolding it generates rather than an Input Select.

`


EmployeeType:



`

`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.