0

entity.Property().HasComment(comment) メソッドに渡されるパラメーターとして、html 要素の title 属性を設定しようとしています。

私は運が悪かった:

<label asp-for="OrganizationTypeId" title="@ViewData.ModelMetadata.Description">

OnModelCreating メソッドが以下を設定している間、値は null です。

modelBuilder.Entity<Organization>(entity =>
{
   entity.Property(e => e.OrganizationTypeId).HasComment("Foreign key of the Org...");

このコメントは html 属性として使用できますか?

ありがとう

4

1 に答える 1