⚠ Deprecated: Other, Legacy
Use TabuLynx.Query.Executor instead
Suggested alternative: TabuLynx.Query.Executor
A library that provides integration with Microsoft Analysis Services through ADOMD.NET, enabling seamless execution of DAX queries and interaction with Power BI data models.
$ dotnet add package TabuLynx.Core.AdomdClientA library that provides integration with Microsoft Analysis Services through ADOMD.NET, enabling seamless execution of DAX queries and interaction with Power BI data models.
"TabuLynx": {
"ConnectionString": "Provider=MSOLAP;Data Source=localhost:{port};"
}
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using TabuLynx.Core.Hosting;
using TabuLynx.Core.AdomdClient;
using TabuLynx.Query.Dax;
var host = TabuLynxHost.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(config =>
{
config.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true);
})
.ConfigureServices((context, services) =>
{
services.AddAdomdDaxQueryExecutorForLocalPowerBI();
})
.Build();
// Resolve the DAX query client
var daxQueryExecutor = host.Services.GetRequiredService<IDaxQueryExecutor>();
var result = await daxQueryExecutor.ExecuteQueryAsync("EVALUATE ROW(\"Hello\", 1)");
Console.WriteLine(result);
using TabuLynx.Core.Configuration;
using TabuLynx.Query.Dax;
using TabuLynx.Core.AdomdClient;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("appsettings.json");
builder.Services.Configure<TabuLynxOptions>(builder.Configuration.GetSection("TabuLynx"));
builder.Services.AddAdomdDaxQueryExecutorForLocalPowerBI();
var app = builder.Build();
...
var daxQueryExecutor = app.Services.GetRequiredService<IDaxQueryExecutor>();
var result = await daxQueryExecutor.ExecuteQueryAsync("EVALUATE ROW(\"Hello\", 1)");
Console.WriteLine(result);
2.3K