title: ERR The entity type '***' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'
body: <p>I have entity called activity contains 2 list of models will be saved as json on db
  i faced exception when i get entity say that :</p>
  <pre><code> [ERR] The entity type 'LicenseModel' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.
     System.InvalidOperationException: The entity type 'LicenseModel' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.
  </code></pre>
  <p>so licenseModel <strong>is not configured as entity</strong> <strong>it's column</strong> why he see as entity.
  i figure that <strong>DateTime Properties</strong> in LicenseModel make this issue happend, when i change type to DateOnly or DateTimeOffset the issue not happend.</p>
  <p>i used entity framework core version 6.0.7</p>
  <blockquote>
  <p>i can use <strong>[Keyless]</strong> attibute on model or configure model in dbcontext
  like this <strong>builder.Entity().HasNoKey();</strong>  but i need to
  know why he see model as entity.</p>
  </blockquote>
  <blockquote>
  <p>Entity Configuration</p>
  </blockquote>
  <pre><code>public class ActivitiesConfiguration : IEntityTypeConfiguration&lt;Activities&gt;
      {
          public void Configure(EntityTypeBuilder&lt;Activities&gt; builder)
          {
              builder.ToTable(nameof(Activities), DbSchema).HasKey(b =&gt; b.RequestId);
              builder.ConfigureByConvention();
              builder.Property(x =&gt; x.RequestId).IsRequired();
              builder.Property(x =&gt; x.Licenses).HasConversion(x =&gt; x.ToJSON(), x =&gt; x.ToModel&lt;List&lt;LicenseModel&gt;&gt;());
              
          }
      }
      
  </code></pre>
  <blockquote>
  <p>Entity</p>
  </blockquote>
  <pre><code>public class Activities : AuditedEntityTimeWithoutId
      {
          public Guid RequestId { get; private set; }
          public List&lt;LicenseModel&gt; Licenses { get; private set; }
          
      }
  </code></pre>
  <blockquote>
  <p>Model</p>
  </blockquote>
  <pre><code>public class LicenseModel
      {
          public string LicenseNumber { get; private set; } 
          public DateTime IssueDate { get; private set; } 
          public DateTime ExpireDate { get; private set; }
      }
  </code></pre>
  <p>Thanks For Support.</p>