Primary and Foreign keys .net core

PHOTO EMBED

Tue Apr 12 2022 09:43:01 GMT+0000 (UTC)

Saved by @Karam #sql

 protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);

            builder.Entity<InternetUsersLog>()
           .HasOne<AspNetBranchs>(sc => sc.Branch)
           .WithMany(s => s.Users)
           .HasForeignKey(sc => sc.Branch_Id);


        }
content_copyCOPY

Entityframework core Db context class