![]() |
VOOZH | about |
This article illustrates using LINQ to access tables within the Oracle Eloqua Reporting via the CData ADO.NET Data Provider for Oracle Eloqua Reporting. 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.
Oracle Eloqua Reporting supports the following authentication methods:
To perform authentication with a user and password, specify these properties:
To authenticate with the OAuth code grant flow, you must set AuthScheme to OAuth and create a custom OAuth application. For information about how to create a custom OAuth application, see the Help documentation.
Then set the following properties:
When you connect, the driver opens Oracle Eloqua Reporting's OAuth endpoint in your default browser. Log in and grant permissions to the application. When the access token expires, the driver refreshes it automatically.
With the OAuth password grant flow, you can use your OAuth application's credentials alongside your user credentials to authenticate without the need to grant permission manually via a browser prompt. You must create an OAuth app (see the Help documentation) to use this authentication method.
Set the following properties:
Below is a typical connection string:
AuthScheme=Basic;User=user;Password=password;Company=MyCompany;
Using the entity you created, you can now perform select commands. For example:
OracleEloquaReportingEntities context = new OracleEloquaReportingEntities();
var Query = from in context.
select ;
foreach (var result in Query) {
Console.WriteLine("{0} {1} ", result.Id, result.);
}
See "LINQ and Entity Framework" chapter in the help documentation for example queries of the supported LINQ.
Download a free trial of the Oracle Eloqua Reporting Data Provider to get started:
Download NowLearn more:
👁 Oracle Eloqua Reporting IconRapidly create and deploy powerful .NET applications that integrate with Oracle Eloqua Reporting.