New answers tagged

1

I seem to be able to create a new student, & to be able to add them to the BindingSource. I know this because the show up in the DataGridView. But, their id value is always 0. And, I need for the id value to be unique. When I save the changes made in the BindingSource to the underlying db file the new students are not saved. If I edit the ...


2

By default, Entity Framework will create the foreign key with the name of the entity primary key that is referenced by the navigation property. // Navigation Propertites // // (one-to-x) relation public User User { get; set; } // (many-to-x) relation public ICollection<User> Users { get; set; } // works vice versa For the ForeignKey ...


Top 50 recent answers are included