powersync-ja/powersync-dotnet
Über uns
PowerSync client SDK for .NET
Daten und AnalyseGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalPowerSync keeps a client-side SQLite database in sync with your backend database. Changes appear across users and devices in real-time, user interactions feel instant and your app continues to work even when offline. Supports Postgres, MongoDB, MySQL, and SQL Server. Client SDKs are available for a wide range of environments including web, mobile, desktop, headless and embedded.
PowerSync .NET SDKs
powersync-dotnet is the monorepo for PowerSync .NET SDKs.
Monorepo Structure: Packages
Packages are published to NuGet.
- PowerSync.Common
- Core package: .NET implementation of a PowerSync database connector and streaming sync bucket implementation. Packages meant for specific platforms will extend functionality of
Common.
- Core package: .NET implementation of a PowerSync database connector and streaming sync bucket implementation. Packages meant for specific platforms will extend functionality of
- PowerSync.Common.SourceGenerators
- Optional source generators for
Common, such as[GenerateSqlMapper]for mapping query rows to your own types.
- Optional source generators for
Demo Apps / Example Projects
Demo applications are located in the demos/ directory. Also see our Demo Apps / Example Projects gallery which lists all projects by the backend and client-side framework they use.
- demos/CommandLine: A CLI-based app demonstrating real-time data sync
- demos/WPF: A Windows desktop to-do list app real-time data sync
- demos/MAUITodo: A cross-platform mobile and desktop to-do list app built with .NET MAUI, running on iOS, Android and Windows
Supported Frameworks
Target Frameworks
This PowerSync SDK supports the following target frameworks:
- .NET 10 - Current LTS Version, used for development of this project
- .NET 9 - Current STS Version
- .NET 8 - Previous LTS Version, supported until November 10, 2026
When running commands such as dotnet run or dotnet test, you may need to specify the target framework explicitly using the --framework flag.
Application Frameworks
- MAUI - Cross-platform native apps for mobile and desktop
- Platforms: iOS, Android, Windows
- WPF - Windows desktop applications
- Console Applications - Command-line and binary apps
Development
Setup Development Environment
Formatting
This project uses EditorConfig for formatting, which may require certain extensions/plugins to function properly in your IDE.
- VSCode: Available via this extension.
- JetBrains Rider: Supported by default.
- Neovim: Supported by default, or via the
gpanders/editorconfig.nvimplugin for versions prior tov0.9. - Emacs: Available via
editorconfig-mode, or theeditorconfigpackage for versions prior tov30.1.
Project Setup
Download PowerSync extension
dotnet run --project Tools/Setup
Install dependencies
dotnet restore
Tests
Run all tests
dotnet test -v n --framework net10.0
Run a specific test
dotnet test -v n --framework net10.0 --filter "test-file-pattern"
Integration Tests
Integration tests in PowerSync.Common.IntegrationTests are intended to run against the self-host nodejs demo.
The integration tests are disabled by default, define the following environment variable when running the tests.
RUN_INTEGRATION_TESTS=true dotnet test -v n --framework net10.0
Only run integration tests, without any unit tests.
RUN_INTEGRATION_TESTS=true dotnet test -v n --framework net10.0 --filter "Category=Integration"
Performance Tests
Performance tests in PowerSync.Common.PerformanceTests are disabled by default, define the following environment variable when running the tests.
RUN_PERFORMANCE_TESTS=true dotnet test -v n --framework net10.0
Only run performance tests, without any unit tests.
RUN_PERFORMANCE_TESTS=true dotnet test -v n --framework net10.0 --filter "Category=Performance"
Using the PowerSync.Common package in your project
dotnet add package PowerSync.Common
Documentation and Further Reading
- PowerSync website: https://powersync.com
- PowerSync .NET SDK Docs: https://docs.powersync.com/client-sdks/reference/dotnet
- PowerSync .NET SDK API Reference: https://powersync-ja.github.io/powersync-dotnet/api/PowerSync.html
Ähnliche Projekte entdecken
Wird geladen…