百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

Parse-SDK-dotNET

> 数据库
开源

适用于 .NET 的解析 SDK

334 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

适用于 .NET 的解析 SDK


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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#dotnetparse-platformparse-serversdk

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

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