I need to declare an 0..1 to many relationship using Fluent API with EntityFramework Core. Right now I have a 1 to many relationship and I cannot figure out how to change that to a 0..1 to many.
modelBuilder.Entity<Item>()
.HasOne(c => c.Constraint)
.WithMany(p => p.Constraint)
.HasForeignKey(p => p.Growid)
.HasPrincipalKey(b => b.Growid);
Any help would be greatly appreciated.