A Beginners' Guide to Blazor WebAssembly - Adding SQLite & Dapper
HTML-код
- Опубликовано: 9 фев 2023
- How to add a SQLite database and Dapper to a Blazor WebAssembly (WASM) project. We will then amend the C# code to use Dapper and SQLite data to populate our Blazor page list.
Useful Links:
Video script, including source code : blazorcode.uk/countriesandcit...
DB Browser for SQLite : sqlitebrowser.org
Dapper : github.com/DapperLib/Dapper
SQLite Tutorial : www.sqlitetutorial.net
Learn Dapper : www.learndapper.com - Наука
Hello! Very good content !
Thank you again!
Thanks Lot
You're welcome
What if the new upgrade does not allow the addition and use of a Data folder in the server?
I haven't tried to reproduce the application presented in this video in .NET 8.0, so cannot be absolutely sure, but I have created Blazor Web Apps with .NET 8.0 where I have been able to create a Data folder in the server project and place a SQLite database in it. Are you sure you can't create a Data folder in the server project?
My countries list page warning is "An unhandled error has occurred. Reload" and can't show data in countries list page please help.
Tee, unfortunately, that is a generic type of error and doesn't really help much! I normally see this error if I have made a typing error or similar. I suggest that you have a look at the accompanying blog post and code page and check through your code and compare with mine. Blog post: blazorcode.uk/countriesandcitieswasm/add-sqlite-and-dapper/
Code (only changes for this post) blazorcode.uk/countriesandcitieswasm/add-sqlite-and-dapper-code/
If you need the code for previous posts, look back through the posts and look for 'Code' or 'References' at the end of the post.
Good luck...
@@christopherbell7186 Now, I can fix it successfully. Thank you.
@@tee5831 Well done!
Well, very good content, however, I believe it does not match the title of the video.👍👊
It's me that's the beginner! 🙄