![]() |
VOOZH | about |
This article illustrates using LINQ to access tables within the Airtable via the CData ADO.NET Data Provider for Airtable. 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.
APIKey, BaseId and TableNames parameters are required to connect to Airtable. ViewNames is an optional parameter where views of the tables may be specified.
Below is a typical connection string:
APIKey=keymz3adb53RqsU;BaseId=appxxN2fe34r3rjdG7;TableNames=Table1,...;ViewNames=Table1.View1,...;
Using the entity you created, you can now perform select , update, delete, and insert commands. For example:
AirtableEntities context = new AirtableEntities();
var sampletable_1Query = from sampletable_1 in context.SampleTable_1
select sampletable_1;
foreach (var result in sampletable_1Query) {
Console.WriteLine("{0} {1} ", result.Id, result.Id);
}
See "LINQ and Entity Framework" chapter in the help documentation for example queries of the supported LINQ.
Download a free trial of the Airtable Data Provider to get started:
Download NowLearn more:
👁 Airtable IconRapidly create and deploy powerful .NET applications that integrate with Airtable.