Skip to content

Saleslogix/DotNetSDataClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Saleslogix SData client library for .NET

DotNetSDataClient is a multi-platform .NET client library that simplifies consuming Saleslogix SData web services.

Features

  • Support for .NET 4.0, 4.5.2, 4.7.2, and .NET 4.8
  • Read and write content in JSON and Atom format
  • A LINQ provider supporting all the common operators except grouping and aggregation
  • Serialization to and from POCOs, anonymous types, dictionaries and dynamic (DLR) objects
  • Synchronous and asynchronous operations that can be used with the async/await keywords
  • Differential updates via client side change tracking
  • Automatic ETag concurrency handling
  • High level $service, $batch and $schema APIs

Basic Example

The following example requests a list of active contacts ordered by last name then first name with addresses included using an asynchronous typed LINQ query:

var client = new SDataClient("http://example.com/sdata/slx/dynamic/-/")
    {
        UserName = "admin",
        Password = "password"
    };
var contacts = await client.Query<Contact>()
    .Where(c => c.Status == "Active")
    .OrderBy(c => c.LastName)
    .ThenBy(c => c.FirstName)
    .Fetch(c => c.Address)
    .ToListAsync();

[SDataPath("contacts")]
public class Contact
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public string Status { get; set; }
    public Address Address { get; set; }
}

License

Swiftpage Partner Source License, full text available here.

Copyright 2014 Swiftpage ACT! LLC. All rights reserved.

Links