I have below code

using System;
using IranKala.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace IranKala.Persistence.Configurations
    public class PriceConfiguration : IEntityTypeConfiguration<Price>
        public void Configure(EntityTypeBuilder<Price> builder)
            builder.HasKey(e => e.PriceId);
            builder.Property(e => e.PriceId).ValueGeneratedOnAdd();

and I receive below error when try to use this enter link description here

entitytypebuilder<> does not contain a definition for hasrequired

0 Answers