EF CORE SAVE ENTIDADE sem chave

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    modelBuilder.Entity<ConfigTemplate>(entity =>
    {
         // Adding the key itself, using the index name as well
         entity.HasKey(e => e.primary_key)
               .HasName("PRIMARY");

         // Adding the index definition is not a required
         entity.HasIndex(e => e.primary_key)
               .HasName("PRIMARY");

         entity.ToTable("config_template");
    }
}
Doubtful Dugong