CRUD Operations with SQLite for Xamarin.Forms and .NET MAUI

CRUD Operations with SQLite for Xamarin.Forms and .NET MAUI

Gerald Versluis

2 года назад

15,494 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Bobby Tait
Bobby Tait - 09.08.2021 02:26

Hey Gerald, thanks for the video. With this video and the previous one, though, I noticed an SQLException developing from Windows with targets of Windows & Android. This happened on first run of the app each time. The second and subsequent runs ran fine. Do you know if there is a way to better initialise the database on first run?

Ответить
Saintseer
Saintseer - 11.10.2023 00:23

what if we had multiple inputs from a form that is stored in a collectionview, how do we display it as a single item when it is clicked on , displays the clustered items in a new form

Ответить
قناة الطيب المعلوماتية
قناة الطيب المعلوماتية - 17.04.2023 19:16

Hello Gerald. Thanks for the great tutorial . Can we use variables in the query statement? i.e. "WHERE Name = Textbox.Text"?

Ответить
yasmina amroun
yasmina amroun - 06.04.2023 16:34

how to do it, when there is a database with several tables; what about the database creates it in a single Data directory or in the service directory ? Dankjewel

Ответить
David Jackson
David Jackson - 14.09.2022 13:24

Can you do a MAUI specific example of this please :)

Ответить
Moawad Abd Elbasset
Moawad Abd Elbasset - 13.08.2022 00:38

thanks for you i hope to help me i design crud and use picker like combobox how i set the value when load in edit

Ответить
YG STAN 4EVER
YG STAN 4EVER - 03.07.2022 14:12

Hi, I'm following your tutorial but I got an error. It says "EventHandler "Button_Clicked_1" with correct signature not found in type"😭

Ответить
Gordon Moore
Gordon Moore - 20.06.2022 20:14

This is really really great, but what about MVVM version? I am trying to implement this, but struggling. I have the App.Database and I'm using CommunityToolkit.Mvvm.ComponentModel; but I'm struggling on how to declare an [ObservableProperty] for the database instance that I can then use in the CollectionView. Just can't see it at all. :)

Ответить
serious
serious - 11.06.2022 00:39

Hey Gerald, thanks for the video. I used your previous SQLite-NET video to create a database that I am intending on using to connect to a log-in page. My one question is how would I go about linking the database to the login button? Lets say someone enters "admin" as the username and "password" as the password, I want to search through the database to see if that login exists.
Example:

if ("XAML Username Entry" == "Database Username" && "XAML Password Entry" == "Database password matching that username" {
Proceed with rest of code
}
else {
alert the user
}

Much appreciated and thank you for the video!

Ответить
gruffy wright
gruffy wright - 21.05.2022 17:55

Such pro teaching, thank you for helping us all understand C#, Xamarin [and now MAUI too] since 2016 :))

Ответить
zekad noureddine
zekad noureddine - 10.03.2022 12:55

Hi....and think you for this tutorial...
I have application net Maui Blazor with connect to SQLite ... It works fine in android but not working in Windows UWP ....?

Ответить
Henry Johnston
Henry Johnston - 28.02.2022 07:02

Hey Gerald, thank you for the video. It is very simple and accommodate all query operation. Easy to understand. This is the best video for beginner.

Ответить
rturney
rturney - 01.02.2022 19:28

Gerald, thank you for this great tutorial! I subscribed. I have a question: How would you add a database that has already been created in SQLite? I have a database that has many tables and want to query the records. Where would the database be added in the Solution tree? Could you do a video on this?

Ответить
odunjo mercy
odunjo mercy - 31.01.2022 15:47

Hi Gerald, thank you for this video! I have also seen your MVVM video, I'm trying to use my entry field value in my ViewModel class but can't seem to do that. I declared a variable to hold the "entryField.Text" but it doesn't work, I get the "does not exist in current context" error. I need to use it inside a method. Please what do you suggest?

Ответить
Marianne PATINVOH
Marianne PATINVOH - 30.11.2021 14:42

Hi. Thanks for the video. I try the in my application but i m getting some error in the Database.cs file: public Task<List<Person>> GetPeopleAsync()
public Task<List<Person>>
SavePeopleAsync()... It is giving me: accessibility incoherente. Please help me resolve it. Thanks

Ответить
jimbar99
jimbar99 - 17.11.2021 06:49

Thanks for posting this tutorial it is by far the best one I have found on the subject. Between your prior video on SQLite and this one I was able to get CRUD working as I duplicated your sample app. Hopefully I can take what I have learned and integrate the principles into my own app.

Ответить
Rebels Developer
Rebels Developer - 14.11.2021 14:35

seem nice .

Ответить
jckr0r
jckr0r - 05.11.2021 13:29

Hello, is it possible to sync a local SQLite with an SQL Server database ? I would like my app to be usable without connection, and let the user create some stuff offline, then save these on the SQL server when he is connected. What would you recommend to do so ? Thank you in advance, I am really looking forward to your next videos as I will soon start a project with MAUI or Xamarin.

Ответить
Poornima Nayar
Poornima Nayar - 14.10.2021 17:27

Hey Gerald, how can we reach out to local APIs using Blazor MAUI?

Ответить
wael mahdy
wael mahdy - 24.08.2021 17:44

Really good videos and helpful. Thanks. Can you please make a video of how to extract text from image in xamarin forms

Ответить
Sjors Miltenburg
Sjors Miltenburg - 15.08.2021 10:51

Maybe it is nice to show how can you "view" the structure and data of database that is created (in order not to guess fields/ relations for queries, especially after you have done migrations in the past that may not have cleaned up your data as you expected) in a visual editor like microsoft sql management studio.

Ответить