modelBuilder.Entity("ASTAR.Customers.Customer", b => { b.Property<long>("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<long>("CreatedBy");
b.Property<DateTime>("CreatedDate");
b.Property<string>("CustomerAccountNumber")
.IsRequired();
b.Property<string>("CustomerCompanyName")
.IsRequired();
b.Property<long>("CustomerId");
b.Property<string>("StatusId");
b.Property<string>("Tags")
.IsRequired();
b.HasKey("Id");
b.HasIndex("CustomerId");
b.ToTable("Customer");
});
I need customer id should be the primary key when RAD tool generating the migration file
Yes After updated my entity I deleted database and regenerate database again. But Always Id is taking as primarykey. Trying to assign customerid as primary key I am unable to do it.
I am also facing same issue. I am running the application in my local. Please help me ASAP.
yes, it displays in swagger.
above github url is not accessiable