kevin
Trying to implement SQL database in my app
Hello I'm trying to implement SQLite in my application, my professor has provided me with sample code but whenever i try to implement it i get the error seen in the screenshot, i suppose the package cant find my database file ?
Heres the code im using:
Constants.cs
4 replies
Tabbed pages in MAUI
Hello I'm trying to create a TabbedPage in MAUI using the following code:
I get 2 errors:
Partial declarations of 'DashboardView' must not specify different base classes
and Argument 1: cannot convert from 'Project.View.DashboardView' to 'Microsoft.Maui.Controls.Page
If i change <TabbedPage>
to ContentPage
it works.
Here's the line of code where the error occurs:
5 replies
Problems with creating a new ContentPage in .NET MAUI
Hello I'm trying to make a dashboard view in .NET MAUI using a content page. Once I generate it it says: "the name 'InitializeComponent' does not exist in the current context." I have tried rebuilding the solution and re-opening my project but I have no clue on how to fix this.
3 replies
✅ Issues with setting up different classes and sql connection
Could someone help me understand how I can setup this SQL connection? it's my first time organizing my code into different folders and really structuring my app with different folders, etc.
I get the error "A field initializer cannot reference the non-static field, method or property 'Customer.connection' ".
I want to make it so that I have a connection class that handles the connection. Currently I have: model class that talks to the dal class that talks to the connection class
I have the following class:
My connection class looks like this
35 replies