At timestamp 23:27 in the video you run the code to see how it looks. When I run mine I get an error in what you have as line 61. "countries = dbContext.Countries.ToList(); In my application it was "Unable to cast object of type 'System.String' to type 'System.Int32'". I previously had to go into DbModels and changed the Country, State, and City files so that they had int's in them for the Id's because the scaffolding made everything strings. You don't show the cs files in your DbModels folder so I don't know if I did them correctly. I am running in Visual Studio 2022 with .Net 7. Would that make a difference?
@PaulWyndham10 ай бұрын
I just saw your link to purchase the demo so I did that and downloaded it. I will look through it and see what my difference is. Thanks
@PaulWyndham10 ай бұрын
After creating the TestDB from your script and putting my SQL server connection string in I get an error in the same line with your code. Maybe there is something messed up with the connection to my sql server.
@yassermian991310 ай бұрын
during this the whole page is not refreshed..right?