Update answer above answer
You use EF and get the following error,
the type or name of the Migration namespace does not exist in the Microsoft.Data.Entity.Relational namespace
then remove the following namespace
using Microsoft.Data.Entity.Relational.Migrations.Infrastructure
and add the following namespace
using Microsoft.Data.Entity.Migrations.Infrastructure
You also need to rewrite several properties, for example, from the following property. Remove the .GenerateValueOnAdd () function.
In some property, the .StoreGeneratedPattern (StoreGeneratedPattern.Identity) function replaces the .UseSqlServerIdentityColumn () function.
b.Property<string>("Id") .GenerateValueOnAdd() .Annotation("OriginalValueIndex", 0);
You have to do something in several files.
Mrugesh
source share