MeshyDB.SDK 0.8.5

There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package MeshyDB.SDK --version 0.8.5
NuGet\Install-Package MeshyDB.SDK -Version 0.8.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MeshyDB.SDK" Version="0.8.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MeshyDB.SDK --version 0.8.5
#r "nuget: MeshyDB.SDK, 0.8.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MeshyDB.SDK as a Cake Addin
#addin nuget:?package=MeshyDB.SDK&version=0.8.5

// Install MeshyDB.SDK as a Cake Tool
#tool nuget:?package=MeshyDB.SDK&version=0.8.5

MeshyDB.SDK Build Status

The Meshy SDK is meant to integration with MeshyDB.

This sdk is developed in a .Net framework and is distributed using .Net Framework 4.7.1 and .Net Core 2.0.

What is Meshy?

Meshy is back-end cloud that your application integrates with via a secure RESTful API. This API provides basic Create, Read, Update, and Delete operations. Your data is kept private, isolated and redundantly stored in a high availability dynamically scalable backend. And there is more to come!

Getting Started

Create a MeshyDB account if one does not exist.

Once created retrieve the Public Key to integrate MeshyDB.SDK.

Add the reference to MeshyDB.SDK via NuGet.

Once the package is installed you can instantiate a new instance of the MeshyDB and log in to create a Client to communicate with the Meshy DB API.

var database = new MeshyDB({accountName},{publicKey}); 

var client = await database.LoginWithAnonymouslyAsync(); 

Creating a Mesh

Before we create a Mesh we need to create a Mesh Data Definition data.

When we create our definition it will define what fields we want to collect as well as the name of our Mesh. This is defined by the name of the class.

We will create a definition by inheriting and extending the MeshData abstract class.

using MeshyDB.SDK.Models; 

public class ExampleData : MeshData 
{ 
  // Your Mesh Data Properties will go here 

  #region Example Properties 

  public string Name { get; set; } 
  public int FavoriteNumber { get; set; } 

  #endregion 
} 

Aditionally, we can override our Mesh name by providing something more specific.

using MeshyDB.SDK.Models; 
using MeshyDB.SDK.Attributes; 

[MeshName("ExampleMeshName")] 
public class ExampleData : MeshData 
{ 
  // Your Mesh Data Properties will go here 

  #region Example Properties 
  ...   
  #endregion 
} 

Now that we have our Mesh Data definition we can create or add to an existing Mesh. We will need to identify which Mesh requires the data.

We can commit this data via our client we defined in Getting Started.

  // Create Example Data to be committed 
  var data = new ExampleData(){ 
    Name = "Tester McTesterton", 
    FavoriteNumber = 64983 
  }; 

  // Create Mesh Data for a specific Mesh and get the data returned with the committed id from the API 
  data = await client.Meshes.CreateAsync(data); 

If we are not able to work in an asynchronous system we can simply call client.Meshes.Create(data). This pattern applies to all methods.

Update Mesh Data

Updating Mesh Data is similar to creating a Mesh. The largest difference is we need to supply which location requires the data to be committed.

This use the same model we used during in Creating a Mesh.

  // Update Mesh Data for a specific Mesh and get the data returned with the committed id from the API 
  data = await client.Meshes.UpdateAsync(data.id, data); 

Get Mesh Data

If we have a specific id we can get the individual record based on id. We will use this using the same object used in Creating a Mesh.

  // Get will get a Mesh with a specific id and cast the response into the provided class definition as long as it extends MeshData 
  var dataById = await client.Meshes.GetAsync<ExampleData>(data.id); 

Search Mesh Data

MeshyDB uses NoSQL to store and search data so that it can best fit a varity of needs from dynamic or normalized data.

Every search will be paged based on the Page Result definition in the SDK.

Because of that we can use NoSQL search strings to find data based on your needs. This can be done in two different ways. Manually creating a NoSQL search string or using Linq that will be converted into proper search criteria using MongoDB Driver.

NoSQL Example:

  var pagedSearchResult = await client.Meshes.SearchAsync<ExampleData>("{ 'FavoriteNumber': { '$gt': 5000 } }"); 

Linq Example:

  var pagedSearchResult = await client.Meshes.SearchAsync<ExampleData>((t) => t.FavoriteNumber > 5000); 

Delete Mesh Data

We can delete our data if we no longer need it.

Caution This will perform a hard delete and remove it from your system. If you still need the data consider adding a IsDeleted property and filter those from your results if needed.

We will delete the example we started with in Creating a Mesh.

  await client.Meshes.DeleteAsync<ExampleData>(data.Id); 

Sign out

We are now done processing our data. Last thing to do is sign out.

  await client.SignoutAsync(); 
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 is compatible.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.1 1,202 1/31/2020
1.5.0 1,046 1/14/2020
1.4.0.1 1,050 11/1/2019
1.0.0 1,138 8/5/2019
0.10.1 1,137 8/2/2019
0.9.0 1,079 7/27/2019
0.8.7.1 1,104 7/12/2019
0.8.7 1,146 7/11/2019

Adding ability to sort meshes.