Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi friend i have a problem "Unable to track an entity of type 'Customer' because its primary key property 'CustomerId' is null.' I want to see the database from the screen but at that time I am facing such a problem

A primary should not be nullable e.g.
public partial class CustomersConfiguration : IEntityTypeConfiguration<Customers>
{
public void Configure(EntityTypeBuilder<Customers> entity)
{
entity.HasKey(e => e.CustomerIdentifier)
.HasName("PK_Customers_1");
. . .
OnConfigurePartial(entity);
}
}