Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

Parse-SDK-dotNET

> 数据库
Open source

Parse SDK for .NET

334 stars0 likes1 views
WebsiteGitHub

About

Parse SDK for .NET


This library gives you access to the powerful Parse Server backend from your .NET app. For more information on Parse Platform and its features, visit parseplatform.org.


  • Compatibility
    • .NET
  • Using the Code
    • Common Definitions
    • Client-Side Use
    • Server-Side Use
    • Basic Demonstration
  • Local Builds
  • .NET Core CLI

Compatibility

.NET

Parse .NET SDK is continuously tested with the most recent releases of .NET to ensure compatibility. We follow the .NET Long Term Support plan and only test against versions that are officially supported and have not reached their end-of-life date.

.NET Version End-of-Life Parse .NET SDK Version
Standard 2.0 November 2024 >=1.0.0 =1.0.0 =1.0.0 =1.0.0
9.0 May 2026 >=1.0.0

[!NOTE]
We have removed support for NET Standard 2.0 with Parse .NET SDK 4.0. Xamarin developers should migrate to .NET MAUI to use the latest version of the Parse .NET SDK. Unity developers should use Parse .NET SDK { ["X-Extra-Header"] = "Some Value" } });

…

csharp new ParseClient(/* Parameters */).Publicize();

…

csharp new ParseClient(/* Parameters */, default, new ConcurrentUserServiceHubCloner { }).Publicize();


Consecutive instantiations can be done via the cloning constructor for simplicity's sake.

```csharp
ParseClient client = new ParseClient { };

Basic Demonstration

The following code shows how to use the Parse .NET SDK to create a new user, save and authenticate the user, deauthenticate the user, re-authenticate the user, create an object with permissions that allow only the user to modify it, save the object, update the object, delete the object, and deauthenticate the user once more.

csharp
// Instantiate a ParseClient.
ParseClient client = new ParseClient(/* Parameters */);

// Create a user, save it, and authenticate with it.
await client.SignUpAsync(username: "Test", password: "Test");

// Get the authenticated user. This is can also be done with a variable that stores the ParseUser instance before the SignUp overload that accepts a ParseUser is called.
Console.WriteLine(client.GetCurrentUser().SessionToken);

// Deauthenticate the user.
await client.LogOutAsync();

// Authenticate the user.
ParseUser user = await client.LogInAsync(username: "Test", password: "Test");

// Create a new object with permessions that allow only the user to modify it.
ParseObject testObject = new ParseObject("TestClass") { ACL = new ParseACL(user) };

// Bind the ParseObject to the target ParseClient instance. This is unnecessary if Publicize is called on the client.
testObject.Bind(client);

// Set some value on the object.
testObject.Set("someValue", "This is a value.");

// See that the ObjectId of an unsaved object is null;
Console.WriteLine(testObject.ObjectId);

// Save the object to the target Parse Server instance.
await testObject.SaveAsync();

// See that the ObjectId of a saved object is non-null;
Console.WriteLine(testObject.ObjectId);

// Query the object back down from the server to check that it was actually saved.
Console.WriteLine((await client.GetQuery("TestClass").WhereEqualTo("objectId", testObject.ObjectId).FirstAsync()).Get("someValue"));

// Mutate some value on the object.
testObject.Set("someValue", "This is another value.");

// Save the object again.
await testObject.SaveAsync();

// Query the object again to see that the change was made.
Console.WriteLine((await client.GetQuery("TestClass").WhereEqualTo("objectId", testObject.ObjectId).FirstAsync()).Get("someValue"));

// Store the object's objectId so it can be verified that it was deleted later.
var testObjectId = testObject.ObjectId;

// Delete the object.
await testObject.DeleteAsync();

// Check that the object was deleted from the server.
Console.WriteLine(await client.GetQuery("TestClass").WhereEqualTo("objectId", testObjectId).FirstOrDefaultAsync() == null);

// Deauthenticate the user again.
await client.LogOutAsync();

Local Builds

You can build the SDK on any system with the MSBuild or .NET Core CLI installed. Results can be found under either the Release/netstandard2.0 or Debug/netstandard2.0 in the bin folder unless a non-standard build configuration is used.

.NET Core CLI

batch
dotnet build Parse.sln

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#dotnetparse-platformparse-serversdk

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库