ray2day / CarRentalManagement

Modern Web Development with Blazor WebAssembly Udemy course repository
0 stars 0 forks source link

regarding assistance for running the project #1

Open zeroxiru opened 2 years ago

zeroxiru commented 2 years ago

Hello there, Thanks for sharing the code on GitHub. I am new to Blazor trying to run your project on my visual studio when I use your local DB the project executes but when trying with my local desktop name it creates the DB table into the database but the page provides this error. Could help me with how can I solve this problem?

ray2day commented 2 years ago

Hello Ibrahim,

Can you be more clear about the 'error' you get?

As you can read in my GitHub intro of this repository this is the final code of a course I followed. I did not use it for some time, but I have checked it today and it is still working fine (even without updating nuget packages..).

When you build this code and start it (using Visual Studio) a local DB is created on your computer. It even will contain some seeded/hardcoded data (MakeSeedConfiguration.cs).

Maybe you have to 'update the database' in the package manager console: in Visual Studio select Tools -> NuGet Package Manager -> Package Manager Console and type update-database

Good luck!

By the way the original code you can find here; https://github.com/trevoirwilliams/CarRentalManagement-Blazor-WASM