Hi there,
I've followed along with some of the tutorials for asp.net core and EF and so far so good. I've started writing my website and stumbled onto of things that have confused me.
1) I'm working with an existing database and it has some bridge tables in it. When I migrated it into the project the scaffolder complained about no primary keys on them, would it be good practice to add an IDENTITY column on them and mark them as PKs?
2) So I have a view that has my model at the top and has a search input, the view loads all of the data to start with and the search works great at filtering the data. However, I don't want the data to be initially displayed as I only want to display data that's been searched! How do I do this? After working through the tutorials which teaches how to get data on the page, I cant work out how to get it off!!
Thanks for any help and assistance!
Regards,
Dave.