All Questions
833 questions
0
votes
0
answers
70
views
XAMARIN How to share a database between android and home computer over wifi without SSMS installed?
I am able to share a SQL Server database installed on Windows PC and Windows Form app with Android application using WI-FI and IP address. But I would have to distribute the application and I can't ...
0
votes
0
answers
23
views
How do I save User-Entry Image in my Database and Display it using SQLite in Xamarin and Android Studio
I hit a block and I want to save an Image into my Database alongside its Name, Description, and Price but when I display it, only the Name, Description, and Price are being displayed. I want to know ...
0
votes
0
answers
325
views
Could not create DB Connection due to SQL-Cipher issue when migrating from Xamarin to .net Maui
I can create a DB Connection in Xamarin using the following code:
var options = new SQLiteConnectionString(dbPath, true, dbPassword, postKeyAction: c =>
{
c.Execute("PRAGMA ...
0
votes
1
answer
144
views
FilePicker doesn't accept sqlite database file
I write a program for Android, which works with Sqlite3 database. I want to pick database file by FilePicker. Database has standard .db extension. But the FilePicker does not accept this file.
var ...
0
votes
1
answer
113
views
how to access items from one model inside another when I save the items in xamarin forms
I am creating a project using sqlite in xamarin forms, I am experiencing a problem that, on the save new items page, I create an instance of my ITEM model and within the ITEM I reference another model ...
0
votes
0
answers
81
views
Filter SQLite table with current coordinates in Xamarin forms
I have Xamarin form cross-platform app which has a table called Customers stored in SQLite db. This table has Latitude and Longitude for each customer. I can get the current GPS. What I want is to ...
0
votes
1
answer
616
views
.NET MAUI - SQLite-net-PCL CreateTableAsync breaks
I previously had this issue where my whole application froze after calling db.CreateTableAsync in a Service.cs file after following this tutorial. After fixing this issue with this solution, the ...
1
vote
0
answers
665
views
.NET MAUI Application hangs on CreateTableAsync
I have been following this tutorial to implement SQLite-net into my MAUI application. Whenever the program executes "await db.CreateTableAsync<Restroom>();", the whole application ...
0
votes
0
answers
65
views
Error when accessing sqlite db from xamarin
I am a newbie in xamarin. Trying to build a login page but when accessing a connection to sqlite error is occurred. Object variable not set to an instance of an object.
_SQLiteConnection = ...
0
votes
1
answer
129
views
No result with sqlite-net-pcl, xamarin at ios only
I am trying to use sqlite on Xamarin and has been implemented sqlite-net-pcl to create and access local database. Works very well on Android but I can't read records on iOS.
...
0
votes
0
answers
102
views
Xamarin forms add FLyoutPage to FavouritePageList
I want to make a favorite page list but OnPropertyChanged(); does not work.
I add a little button to my flyoutpage item when i click on this a popup shown on the screen then i could add favorite list ...
1
vote
2
answers
4k
views
Create sqlite db in .NET maui app and it works fine. Copy db to pc then copy back to device and it crashes app
I am using Microsoft.Data.Sqlite in .NET Maui (Android) to create a SQLite database in the "Downloads" folder on an Android mobile device if one doesn't exist when the target app is loaded. ...
0
votes
1
answer
73
views
Write information to local filein xamarin c# app
I want to write string to file in same directory as my project in xamarin c# app.
if (!File.Exists("healthcare6copy.db"))
{
File.Create("healthcare6copy.db");
}
It gives me ...
0
votes
1
answer
158
views
How to insert into SQLite database with C#?
I am fetching my data in SQLite C# in Xamarin app like that:
public Task<List<Doctors>> ReadDoctors()
{
return db.Table<Doctors>().ToListAsync();
}
How can I insert into doctors ...
0
votes
4
answers
3k
views
.NET MAUI SQLite CreateTableAsync crashes app without exception
im currently trying to use SQLite in my MAUI Project.
I have used it before in WPF without any issues and I did it the exact same way in MAUI without success.
All of the solutions online didnt work ...