ladyhail
ladyhail
CC#
Created by za on 1/30/2023 in #help
❔ Program isnt updating when i run it or build it.
Did you try to clean solution?
22 replies
CC#
Created by reeeeeee on 1/30/2023 in #help
❔ AZ-204 wth very low experience
It depends on your background. If you're familiar with virutal machines and Basic networking then I think you could give it a try. Other topics are azure specific. I can recommend whizzlab tests. Questions are same sort as for the exam.
3 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
You're welcome
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
One more idea - in controller before .FirstOrDefault add .Include(x => x.peopleUsers)
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
The syntax is valid. I'm pretty sure if you follow the tutorial it'll work
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
You van try to debug cshtml. But if its null on Controller then it will be null im view
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
You need to drop db and recreate
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
It shouldn't make a difference, but lets try.
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
Same for Person. Rename Id to PersonId.
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
In the User class property Id rename to UserId
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
In class definition
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
The only difference I see is User -> Id. Following docs it should be UserId and same for person.
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
I think you can find it useful. The relationship needs to be specified via intermediate table. https://www.entityframeworktutorial.net/efcore/configure-many-to-many-relationship-in-ef-core.aspx
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
Is it Entity Framework Core?
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
I suggest debugging what's inside person before returning
51 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
In View you need to specify Model type like this: @model Namespace.Person
51 replies
CC#
Created by anaana29. on 1/30/2023 in #help
❔ Connect Windows Applications to my React tsx website
Or you could extend windows application to expose some endpoints locally. It would require to install some nugets to handle requests.
4 replies
CC#
Created by anaana29. on 1/30/2023 in #help
❔ Connect Windows Applications to my React tsx website
You need some kind of API that React app could call. It can be hosted locally ASP project that will handle the request from React app. You could use Topshelf to run it as a service.
4 replies
CC#
Created by framoz on 1/30/2023 in #help
ASP NET MVC, can't show Collection in View, VS say it is null
Looks like the Model is not passed to the View. Please share Controller code.
51 replies