![]() |
VOOZH | about |
This article illustrates using LINQ to access tables within the Trello via the CData ADO.NET Data Provider for Trello. To achieve this, we will use LINQ to Entity Framework, which facilitates the generation of connections and can be seamlessly employed with any CData ADO.NET Data Providers to access data through LINQ.
See the help documentation for a guide to setting up an EF 6 project to use the provider.
Enter your data source connection information.
Trello uses token-based authentication to grant third-party applications access to their API. When a user has granted an application access to their data, the application is given a token that can be used to make requests to Trello's API.
Trello's API can be accessed in 2 different ways. The first is using Trello's own Authorization Route, and the second is using OAuth1.0.
Below is a typical connection string:
APIKey=myApiKey;Token=myGeneratedToken;InitiateOAuth=GETANDREFRESH;
Using the entity you created, you can now perform select commands. For example:
TrelloEntities context = new TrelloEntities();
var boardsQuery = from boards in context.Boards
select boards;
foreach (var result in boardsQuery) {
Console.WriteLine("{0} {1} ", result.Id, result.BoardId);
}
See "LINQ and Entity Framework" chapter in the help documentation for example queries of the supported LINQ.
Download a free trial of the Trello Data Provider to get started:
Download NowLearn more:
👁 Trello IconRapidly create and deploy powerful .NET applications that integrate with Trello data including Lists, Cards, Boards, and more!