![]() |
VOOZH | about |
This article illustrates using LINQ to access tables within the HCL Domino via the CData ADO.NET Data Provider for HCL Domino. 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.
To connect to Domino data, set the following properties:
Domino supports authenticating via login credentials or an Entra ID (formerly Azure AD) OAuth application:
To authenticate with login credentials, set the following properties:
The driver uses the login credentials to automatically perform an OAuth token exchange.
This authentication method uses Entra ID (formerly Azure AD) as an IdP to obtain a JWT token. You need to create a custom OAuth application in Entra ID (formerly Azure AD) and configure it as an IdP. To do so, follow the instructions in the Help documentation. Then set the following properties:
The tenant ID is the same as the directory ID shown in the Azure Portal's Entra ID (formerly Azure AD) > Properties page.
Below is a typical connection string:
Server=https://domino.corp.com;AuthScheme=OAuthPassword;User=my_domino_user;Password=my_domino_password;
Using the entity you created, you can now perform select commands. For example:
DominoEntities context = new DominoEntities();
var bynameQuery = from byname in context.ByName
select byname;
foreach (var result in bynameQuery) {
Console.WriteLine("{0} {1} ", result.Id, result.Name);
}
See "LINQ and Entity Framework" chapter in the help documentation for example queries of the supported LINQ.
Download a free trial of the HCL Domino Data Provider to get started:
Download NowLearn more:
👁 HCL Domino IconRapidly create and deploy powerful .NET applications that integrate with HCL Domino.