You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ description = "A set of .NET libraries for synchronizing data between cloud and
8
8
9
9
The Datasync Community Toolkit is a free [dotnet Foundation][Community Toolkit] set of libraries that assists in providing offline data to your desktop and mobile applications. The data is stored in the cloud and synchronized to a local Sqlite database.
Copy file name to clipboardExpand all lines: docs/content/samples/todoapp/avalonia.md
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2,32 +2,33 @@
2
2
title = "Avalonia"
3
3
+++
4
4
5
+
> [!INFO]
6
+
> The Avalonia sample has been kindly contributed to the community by <ahref="https://github.com/timunie">@timunie</a>.
7
+
5
8
## Run the application first
6
9
7
-
The Avalonia sample uses an in-memory Sqlite store for storing its data. The sample can run on Desktop, Mobile and Browser. To run the application locally:
10
+
The Avalonia sample uses an in-memory Sqlite store for storing its data. To run the application locally:
8
11
9
-
*[Configure Visual Studio for Avalonia development](https://docs.avaloniaui.net/docs/welcome).
12
+
*[Configure Visual Studio for Avalonia development](https://docs.avaloniaui.net/docs/get-started).
10
13
* Open `samples/todoapp/Samples.TodoApp.sln` in Visual Studio.
11
-
* In the Solution Explorer, expand the folder `TodoApp.Avalonia`and right-click the `TodoApp.Avalonia.Desktop` project, then select **Set as Startup Project**.
14
+
* In the Solution Explorer, expand the `TodoApp.Avalonia`folder, then right-click the `TodoApp.Avalonia.Desktop` project, then select **Set as Startup Project**.
12
15
* Select a target (in the top bar), then press F5 to run the application.
13
16
14
-
> [!TIP]
15
-
> We suggest to start testing and debugging using the Desktop App first. Once you feel confident, you can also try out Mobile or Browser version.
17
+
If you bump into issues at this point, ensure you can properly develop and run Avalonia applications for the desktop outside of the datasync service.
16
18
17
-
> [!NOTE]
18
-
> If you bump into issues at this point, please visit [Avalonia.Docs](https://docs.avaloniaui.net) and [Avalonia.Samples](https://github.com/AvaloniaUI/Avalonia.Samples) for some basic getting-started tutorials.
19
+
> [!TIP]
20
+
> The TodoApp.Avalonia sample is known to work on Android and Desktop. We have not tested on other platforms.
19
21
20
22
This is how the sample will look like:
21
23

22
24
23
-
24
25
## Deploy a datasync server to Azure
25
26
26
27
Before you begin adjusting the application for offline usage, you must [deploy a datasync service](../server.md). Make a note of the URI of the service before continuing.
27
28
28
29
## Update the application for datasync operations
29
30
30
-
All the changes are isolated to the `Database/AppDbContext.cs` file.
31
+
All the changes are isolated to the `Database/AppDbContext.cs` file in the `TodoApp.Avalonia` shared project.
31
32
32
33
1. Change the definition of the class so that it inherits from `OfflineDbContext`:
33
34
@@ -77,4 +78,7 @@ All the changes are isolated to the `Database/AppDbContext.cs` file.
Obviously, youwillwanttodomuchmoreina"real world"application, includingpropererrorhandling, authentication, andusing a Sqlite file instead of an in-memory database. This example shows off the minimum required to add datasync services to an application.
Copy file name to clipboardExpand all lines: docs/content/samples/todoapp/maui.md
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,10 @@ The MAUI sample uses an in-memory Sqlite store for storing its data. To run the
11
11
* In the Solution Explorer, right-click the `TodoApp.MAUI` project, then select **Set as Startup Project**.
12
12
* Select a target (in the top bar), then press F5 to run the application.
13
13
14
-
The application runs on Android, iOS, and Windows. Each platform needs slightly different setup. Read the MAUI documentation for more information.
14
+
The application should run on Android, iOS, and Windows. Each platform needs slightly different setup. Read the MAUI documentation for more information.
15
+
16
+
> [!TIP]
17
+
> The TodoApp.MAUI sample is known to work on Android and Desktop. We have not tested on other platforms.
15
18
16
19
## Deploy a datasync server to Azure
17
20
@@ -69,4 +72,7 @@ All the changes are isolated to the `Database/AppDbContext.cs` file.
Obviously, youwillwanttodomuchmoreina"real world"application, includingpropererrorhandling, authentication, andusing a Sqlite file instead of an in-memory database. This example shows off the minimum required to add datasync services to an application.
Obviously, youwillwanttodomuchmoreina"real world"application, includingpropererrorhandling, authentication, andusing a Sqlite file instead of an in-memory database. This example shows off the minimum required to add datasync services to an application.
Obviously, youwillwanttodomuchmoreina"real world"application, includingpropererrorhandling, authentication, andusing a Sqlite file instead of an in-memory database. This example shows off the minimum required to add datasync services to an application.
0 commit comments