diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml b/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml
new file mode 100644
index 0000000..3c3bdbe
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml.cs
new file mode 100644
index 0000000..f29d480
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml.cs
@@ -0,0 +1,18 @@
+using LocalDataStorageWithSQLite.Repositories;
+
+namespace LocalDataStorageWithSQLite
+{
+ public partial class App : Application
+ {
+ public static PersonRepository PersonRepo { get; private set; }
+
+ public App(PersonRepository repo)
+ {
+ InitializeComponent();
+
+ MainPage = new AppShell();
+
+ PersonRepo = repo;
+ }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml b/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml
new file mode 100644
index 0000000..7d8dc33
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml.cs
new file mode 100644
index 0000000..cfbeff8
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml.cs
@@ -0,0 +1,10 @@
+namespace LocalDataStorageWithSQLite
+{
+ public partial class AppShell : Shell
+ {
+ public AppShell()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/LocalDataStorageWithSQLite.csproj b/MyFirstMauiApp/LocalDataStorageWithSQLite/LocalDataStorageWithSQLite.csproj
new file mode 100644
index 0000000..38124ca
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/LocalDataStorageWithSQLite.csproj
@@ -0,0 +1,57 @@
+
+
+
+ net7.0-android;net7.0-ios;net7.0-maccatalyst
+ $(TargetFrameworks);net7.0-windows10.0.19041.0
+
+
+ Exe
+ LocalDataStorageWithSQLite
+ true
+ true
+ enable
+
+
+ LocalDataStorageWithSQLite
+
+
+ com.companyname.localdatastoragewithsqlite
+ 26712f3b-bddd-4b31-86d0-e8ba177a9bc3
+
+
+ 1.0
+ 1
+
+ 11.0
+ 13.1
+ 21.0
+ 10.0.17763.0
+ 10.0.17763.0
+ 6.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml b/MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml
new file mode 100644
index 0000000..795ab07
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml.cs
new file mode 100644
index 0000000..68123a4
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml.cs
@@ -0,0 +1,46 @@
+using LocalDataStorageWithSQLite.Models;
+using LocalDataStorageWithSQLite.StorageUtils;
+using Microsoft.Maui.Storage;
+
+namespace LocalDataStorageWithSQLite
+{
+ public partial class MainPage : ContentPage
+ {
+ int count = 0;
+
+ public MainPage()
+ {
+ InitializeComponent();
+
+ //string src = "Source Sample";
+ //List srcs = new List() { "src1", "src2", "src3", "src4", "src5" };
+ //PreferenceStorage ps = new PreferenceStorage();
+ //FileSystemStorage fs = new FileSystemStorage();
+
+ //ps.Set("src", src);
+ //fs.Set("srcs", srcs);
+
+ //var fromPs = ps.Get("src");
+ //var fromFs = fs.Get>("srcs");
+
+ //int a = 0;
+ }
+
+ public void OnNewButtonClicked(object sender, EventArgs args)
+ {
+ statusMessage.Text = "";
+
+ App.PersonRepo.AddNewPerson(newPerson.Text);
+ statusMessage.Text = App.PersonRepo.StatusMessage;
+ }
+
+ public void OnGetButtonClicked(object sender, EventArgs args)
+ {
+ statusMessage.Text = "";
+
+ List people = App.PersonRepo.GetAllPeople();
+ peopleList.ItemsSource = people;
+ }
+ }
+
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/MauiProgram.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/MauiProgram.cs
new file mode 100644
index 0000000..2a1a25c
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/MauiProgram.cs
@@ -0,0 +1,30 @@
+using LocalDataStorageWithSQLite.Repositories;
+using LocalDataStorageWithSQLite.Utils;
+using Microsoft.Extensions.Logging;
+
+namespace LocalDataStorageWithSQLite
+{
+ public static class MauiProgram
+ {
+ public static MauiApp CreateMauiApp()
+ {
+ var builder = MauiApp.CreateBuilder();
+ builder
+ .UseMauiApp()
+ .ConfigureFonts(fonts =>
+ {
+ fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+ string dbPath = FileAccessHelper.GetLocalFilePath("people.db3");
+ builder.Services.AddSingleton(s => ActivatorUtilities.CreateInstance(s, dbPath));
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build();
+ }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Models/Person.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Models/Person.cs
new file mode 100644
index 0000000..2ea59d8
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Models/Person.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+using SQLite;
+
+namespace LocalDataStorageWithSQLite.Models
+{
+ [Table("people")]
+ public class Person
+ {
+ [PrimaryKey, AutoIncrement]
+ public int Id { get; set; }
+
+ [MaxLength(250), Unique]
+ public string Name { get; set; }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/AndroidManifest.xml b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 0000000..e9937ad
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/MainActivity.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/MainActivity.cs
new file mode 100644
index 0000000..6498f14
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/MainActivity.cs
@@ -0,0 +1,11 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+
+namespace LocalDataStorageWithSQLite
+{
+ [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
+ public class MainActivity : MauiAppCompatActivity
+ {
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/MainApplication.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/MainApplication.cs
new file mode 100644
index 0000000..a39802c
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/MainApplication.cs
@@ -0,0 +1,16 @@
+using Android.App;
+using Android.Runtime;
+
+namespace LocalDataStorageWithSQLite
+{
+ [Application]
+ public class MainApplication : MauiApplication
+ {
+ public MainApplication(IntPtr handle, JniHandleOwnership ownership)
+ : base(handle, ownership)
+ {
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/Resources/values/colors.xml b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 0000000..c04d749
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/AppDelegate.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 0000000..0ce46e7
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,10 @@
+using Foundation;
+
+namespace LocalDataStorageWithSQLite
+{
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/Info.plist b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 0000000..c96dd0a
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,30 @@
+
+
+
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/Program.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 0000000..dc59bf5
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,16 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace LocalDataStorageWithSQLite
+{
+ public class Program
+ {
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Tizen/Main.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Tizen/Main.cs
new file mode 100644
index 0000000..ff7a44a
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Tizen/Main.cs
@@ -0,0 +1,17 @@
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+using System;
+
+namespace LocalDataStorageWithSQLite
+{
+ internal class Program : MauiApplication
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ app.Run(args);
+ }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Tizen/tizen-manifest.xml b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..4ed6ac0
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/App.xaml b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/App.xaml
new file mode 100644
index 0000000..eadcd22
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/App.xaml.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/App.xaml.cs
new file mode 100644
index 0000000..c69001e
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,25 @@
+using Microsoft.UI.Xaml;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace LocalDataStorageWithSQLite.WinUI
+{
+ ///
+ /// Provides application-specific behavior to supplement the default Application class.
+ ///
+ public partial class App : MauiWinUIApplication
+ {
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App()
+ {
+ this.InitializeComponent();
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/Package.appxmanifest b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 0000000..562ede2
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/app.manifest b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/app.manifest
new file mode 100644
index 0000000..d2c7568
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/AppDelegate.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 0000000..0ce46e7
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,10 @@
+using Foundation;
+
+namespace LocalDataStorageWithSQLite
+{
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/Info.plist b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/Info.plist
new file mode 100644
index 0000000..0004a4f
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/Program.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/Program.cs
new file mode 100644
index 0000000..dc59bf5
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/Program.cs
@@ -0,0 +1,16 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace LocalDataStorageWithSQLite
+{
+ public class Program
+ {
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Properties/launchSettings.json b/MyFirstMauiApp/LocalDataStorageWithSQLite/Properties/launchSettings.json
new file mode 100644
index 0000000..edf8aad
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Repositories/PersonRepository.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Repositories/PersonRepository.cs
new file mode 100644
index 0000000..b9841de
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Repositories/PersonRepository.cs
@@ -0,0 +1,70 @@
+using LocalDataStorageWithSQLite.Models;
+using SQLite;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LocalDataStorageWithSQLite.Repositories
+{
+ public class PersonRepository
+ {
+ string _dbPath;
+
+ public string StatusMessage { get; set; }
+
+ // TODO: Add variable for the SQLite connection
+
+ private SQLiteConnection _conn;
+ private void Init()
+ {
+ if (_conn != null)
+ return;
+
+ _conn = new SQLiteConnection(_dbPath);
+ _conn.CreateTable();
+ }
+
+ public PersonRepository(string dbPath)
+ {
+ _dbPath = dbPath;
+ }
+
+ public void AddNewPerson(string name)
+ {
+ int result = 0;
+ try
+ {
+ Init();
+
+ if (string.IsNullOrEmpty(name))
+ throw new Exception("Valid name required");
+
+ result = _conn.Insert(new Person { Name = name });
+
+ StatusMessage = string.Format("{0} record(s) added (Name: {1})", result, name);
+ }
+ catch (Exception ex)
+ {
+ StatusMessage = string.Format("Failed to add {0}. Error: {1}", name, ex.Message);
+ }
+
+ }
+
+ public List GetAllPeople()
+ {
+ try
+ {
+ Init();
+ return _conn.Table().ToList();
+ }
+ catch (Exception ex)
+ {
+ StatusMessage = string.Format("Failed to retrieve data. {0}", ex.Message);
+ }
+
+ return new List();
+ }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/AppIcon/appicon.svg b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/AppIcon/appicon.svg
new file mode 100644
index 0000000..9d63b65
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/AppIcon/appiconfg.svg b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Fonts/OpenSans-Regular.ttf b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 0000000..dadcb01
Binary files /dev/null and b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Fonts/OpenSans-Semibold.ttf b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 0000000..5601642
Binary files /dev/null and b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Images/dotnet_bot.svg b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Images/dotnet_bot.svg
new file mode 100644
index 0000000..abfaff2
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Images/dotnet_bot.svg
@@ -0,0 +1,93 @@
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Raw/AboutAssets.txt b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Raw/AboutAssets.txt
new file mode 100644
index 0000000..15d6244
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with you package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Splash/splash.svg b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Splash/splash.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Styles/Colors.xaml b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Styles/Colors.xaml
new file mode 100644
index 0000000..cc325af
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Styles/Colors.xaml
@@ -0,0 +1,46 @@
+
+
+
+
+ #512BD4
+ #DFD8F7
+ #2B0B98
+ #DFD8F7
+ #2B0B98
+ White
+ Black
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #F7B548
+ #FFD590
+ #FFE5B9
+ #28C2D1
+ #7BDDEF
+ #C3F2F4
+ #3E8EED
+ #72ACF1
+ #A7CBF6
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Styles/Styles.xaml b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Styles/Styles.xaml
new file mode 100644
index 0000000..dc4a034
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Styles/Styles.xaml
@@ -0,0 +1,405 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/StorageUtils/FileSystemStorage.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/StorageUtils/FileSystemStorage.cs
new file mode 100644
index 0000000..74a9889
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/StorageUtils/FileSystemStorage.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Text.Json;
+using System.Threading.Tasks;
+
+namespace LocalDataStorageWithSQLite.StorageUtils
+{
+ internal class FileSystemStorage
+ {
+ private string _dir = $"{FileSystem.AppDataDirectory}/Temp";
+
+ public FileSystemStorage()
+ {
+ if (!Directory.Exists(_dir))
+ Directory.CreateDirectory(_dir);
+ }
+
+ public T Get(string key)
+ {
+ string path = Path.Combine(_dir, key);
+ if (!File.Exists(path))
+ return default(T);
+
+ string raw = File.ReadAllText(path);
+ T result = JsonSerializer.Deserialize(raw);
+ return result;
+ }
+
+ public void Set(string key, T value)
+ {
+ var serialized = JsonSerializer.Serialize(value);
+ string path = Path.Combine(_dir, key);
+ File.WriteAllText(path, serialized);
+ }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/StorageUtils/PreferenceStorage.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/StorageUtils/PreferenceStorage.cs
new file mode 100644
index 0000000..640e6f1
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/StorageUtils/PreferenceStorage.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LocalDataStorageWithSQLite.StorageUtils
+{
+ internal class PreferenceStorage
+ {
+ public string Get(string key)
+ {
+ return Preferences.Get(key, null);
+ }
+
+ public void Set(string key, string value)
+ {
+ Preferences.Set(key, value);
+ }
+ }
+}
diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/Utils/FileAccessHelper.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/Utils/FileAccessHelper.cs
new file mode 100644
index 0000000..9e1c912
--- /dev/null
+++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/Utils/FileAccessHelper.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LocalDataStorageWithSQLite.Utils
+{
+ public class FileAccessHelper
+ {
+ public static string GetLocalFilePath(string filename)
+ {
+ return Path.Combine(FileSystem.AppDataDirectory, filename);
+ }
+ }
+}
diff --git a/MyFirstMauiApp/MyFirstMauiApp.sln b/MyFirstMauiApp/MyFirstMauiApp.sln
index 0c1f8a0..a0dba76 100644
--- a/MyFirstMauiApp/MyFirstMauiApp.sln
+++ b/MyFirstMauiApp/MyFirstMauiApp.sln
@@ -13,7 +13,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharedResources", "SharedRe
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlyoutTabSearch", "FlyoutTabSearch\FlyoutTabSearch.csproj", "{389BD760-810D-45D4-B67A-2B95FB8B5F74}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UseRestService", "UseRestService\UseRestService.csproj", "{6878953F-C5FF-4D93-B920-029350FB6B54}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UseRestService", "UseRestService\UseRestService.csproj", "{6878953F-C5FF-4D93-B920-029350FB6B54}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LocalDataStorageWithSQLite", "LocalDataStorageWithSQLite\LocalDataStorageWithSQLite.csproj", "{B15EEC37-30AA-4A54-89D1-D5B3C4DB3E07}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -57,6 +59,12 @@ Global
{6878953F-C5FF-4D93-B920-029350FB6B54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6878953F-C5FF-4D93-B920-029350FB6B54}.Release|Any CPU.Build.0 = Release|Any CPU
{6878953F-C5FF-4D93-B920-029350FB6B54}.Release|Any CPU.Deploy.0 = Release|Any CPU
+ {B15EEC37-30AA-4A54-89D1-D5B3C4DB3E07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B15EEC37-30AA-4A54-89D1-D5B3C4DB3E07}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B15EEC37-30AA-4A54-89D1-D5B3C4DB3E07}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {B15EEC37-30AA-4A54-89D1-D5B3C4DB3E07}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B15EEC37-30AA-4A54-89D1-D5B3C4DB3E07}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B15EEC37-30AA-4A54-89D1-D5B3C4DB3E07}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE