Skip to content

Missing methods in Parse .NET SDK 4.0 #397

@patkozlowski

Description

@patkozlowski

Issue when upgrading to Parse SDK 4.0

After upgrading to Parse SDK 4.0, I've run into a few issues due to changes in the API. Here’s what I’ve encountered:

  1. user.Username is no longer accessible

    • In previous versions, I was able to access the Username field directly with user.Username, but in version 4.0, that field seems to be missing. The following code no longer works:
      var user = ParseClient.Instance.GetCurrentUser();
      if (user.Username == "Test123")
      {
          // logic
      }
  2. user.GetRelation<ParseObject>("SomeClass") is no longer available

    • The method GetRelation<ParseObject>("SomeClass") no longer works. I'm unsure how to handle relations in version 4.0 since it seems like this method was changed or removed. Here’s the code that no longer functions:
      var someClassRelation = user.GetRelation<ParseObject>("SomeClass");
  3. await user.SaveAsync() is no longer working

    • The method SaveAsync() is no longer available on ParseUser objects directly. The following code no longer works:
      await user.SaveAsync();

Environment

  • Parse SDK Version: 4.0
  • Platform: .NET 9.0 MAUI, iOS/Android (or specify your platform)

Any guidance or clarification on these issues would be greatly appreciated! Thanks in advance. Maybe @YBTopaz8 can help? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions