Click here to Skip to main content
15,949,741 members

Comments by HobbyProggy (Top 98 by date)

HobbyProggy 19-Jun-24 9:02am View    
That still really doesn't answer or clarify what Richard asked for, sorry to say but that code is a mess and to me it seems the problem is because you verify each user id with an if else, hence enabling the texbox and later on disabling it because another check overwrites what the admin check has set.

Best guess, clean the code up and show us what your problem is.
HobbyProggy 22-Aug-23 9:17am View    
Okay thanks! It seems like I may probably need to go with both options in the future, though, as from reading the links you posted it's always a good idea to start of eager loading and then narrowing down the performance issue.

I'll keep that in mind!
HobbyProggy 22-Aug-23 8:48am View    
Yep, that's what i just found out then, the lazy loading "killed" me. Thanks for that addition on the AutoInclude! Will try that one out.

One question though, regarding lazy loading, so if i go further with migration i will come across objects that have relations 1:n, since i want to load everything on my rest endpoint and then transfer it via json to the web client or desktop client i need to be sure that all data is loaded when creating the json. Is that working out or would i also need to loop through each "possible" item to trigger the loading?
HobbyProggy 22-Aug-23 7:32am View    
Yep, i am stuck. I really don't get it. For my eyes everything should match as expected, nonetheless it seems like it doesn't...
HobbyProggy 21-Aug-23 9:57am View    
Everywhere where I have "IDs" for objects I use Guid inside the DB table, I am sure that's also the case here and I added one entry for each so I could get started with testing.

But I'll double check that tomorrow and post the update to the question. Thanks so far :)