Can anyone explain what should be seen in SQL profiler when navigating through a CRUD application window, in order to confirm it's correctly and efficiently performing the sql statements?
I opened up SQL Profiler and filtered on EntityFramework Application and .....
Selected the Index page: I'm using PagedList so expected to see either a fetch of all the rows in the table or the first 10 based on the page size. I can see a Select for each individual row nested in an Audit Login / Logoff. Is this how it should be with EF? It concerns me that this will prove slow with a few a large number of records?
Selected the Create Page: Entered page and not entered anything, yet the Profiler’s shows a Select performed. Don’t know why but can live with that?
Selected the Details Page: The Profiler’s shows a 4 Selects performed. Don’t know why but there’s a lot of opening closing connections too.
....Similar stories with Edit and Delete.
Can somebody point me in the right direction on how to use EF efficiently?
Thanks in advance!