1

I have a project include two project in same Solution Explorer

  • First: DbModelContextProvider (Class library)
  • Second: AppApiProvider (MVC core api -v3.1.4)

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
{
}

Same code use with MVC core web app work success but when i want work with Blazor not work

asked Jun 28, 2020 at 14:29

1 Answer 1

1

It seems it is not yet supported for Blazor. https://github.com/dotnet/aspnetcore/issues/20805

answered Jul 16, 2020 at 5:42
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.