Atlas Device SDK para .NET
Use the Atlas Device SDK for .NET to develop cross-platform mobile and desktop apps with C# and MAUI.
Get Started with the .NET SDK
Inicio rápido
Minimal-explanation code examples of how to work with the .NET SDK. Write to the device database, and sync with other devices.
Working Example App
Learn from example by dissecting a working MAUI client app that uses the .NET SDK.
Guided Tutorial
Sigue un tutorial guiado para aprender a adaptar la aplicación de ejemplo y así crear tu propia aplicación funcional.
Develop Apps with the SDK
Puede utilizar el Atlas Device SDK para .NET para desarrollar aplicaciones en C#.NET con varios marcos, incluido .NET MAUI, Xamarin, Avalonia UI, UWP, Unity y otros.
Use the SDK's open-source database - Realm - as an object store on the device. Use Device Sync to keep data in sync with your MongoDB Atlas cluster and other clients.
Install the .NET SDK
Utiliza NuGet para instalar el SDK de .NET en tu solución.
Import the SDK in your source files to get started.
Define an Object Schema
Use C# to idiomatically define an object schema.
Open a Database
The SDK's database - Realm - stores objects in files on your device. Or you can open an in-memory database which does not create a file. Configure and open a database to get started reading and writing data.
Lectura y escritura de datos
Read and write data. You can filter data using idiomatic LINQ Syntax, or the database's Realm Query Language.
React to Changes
Los objetos activos significan que sus datos siempre están actualizados. Puedes registrar un controlador de notificaciones para observar los cambios y realizar alguna lógica, como actualizar el Interfaz de Usuario.
_Spot.webp)
Connect to an Atlas App Services App
Configure Device Sync in an App Services App. Define data access rules. Use Development Mode to infer your schema from your C# data model.
Luego, conéctate al backend desde tu cliente.
Authenticate a User
Use one of our authentication providers to authenticate a user. App Services provides access to popular authentication providers, such as Apple, Google, or Facebook. Use our built-in email/password provider to manage users without a third-party, or use custom JWT authentication to integrate with other authentication providers. Anonymous authentication provides access without requiring a login or persisting user data.
Abrir una base de datos sincronizada
Configure and open a synced database. Subscribe to a query to determine what data the synced database can read and write.
Leer y guardar datos sincronizados
The APIs to read and write data are the same whether you're using a synced or non-synced database. Data that you read and write is automatically kept in sync with your Atlas cluster and other clients. Apps keep working offline and deterministically sync changes whenever a network connection is available.
_Spot.webp)
Use Atlas App Services in your application with the .NET SDK.
Call Serverless Functions
You can call serverless Functions from your client application that run in an App Services backend.
Consulta de MongoDB Atlas
You can query data stored in MongoDB directly from your client application code.
Authenticate Users
Authenticate users with built-in and third-party authentication providers. Use the authenticated user to access App Services.

Lectura Recomendada
Referencia de la API .NET
Explora los docs de referencia generados para las APIs .NET del SDK.
Integrate the SDK with Unity
Descubre cómo integrar el SDK con tu proyecto Unity.
Example Projects
Explore engineering and expert-provided example projects to learn best practices and common development patterns using the .NET SDK. Check out the Example Projects page for more .NET sample apps.
Large File Storage
Almacena archivos grandes, como imágenes, en un servidor remoto. Utiliza activadores y funciones para almacenar las referencias. Aprovecha el diseño offline-first del SDK para almacenar imágenes grandes, incluso cuando esté fuera de línea.
Analytics/Telemetrics Data
Take sensor readings, push data to Atlas, and display the results in Atlas Charts or a time series collection.
Use the SDK with REST APIs
Use the SDK for real-time operations together with REST APIs for server-side business logic - all with a single ViewModel.