I have a project include two project in same Solution Explorer
In DbModelContextProvider project i want create Metadata validation for Department
public class DepartmentMetaData
{
[Display(Name = "Department Name")]
[Required]
public string Name { get; set; }
}
Then create new class _Department_ but partial class
[MetadataType( typeof(DepartmentMetaData))]
public partial class Department
{
}
@zanyar3 thanks for contacting us.
That is an ASP.NET Core feature, not something that Blazor supports.
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.
See our Issue Management Policies for more information.