【发布时间】:2021-02-14 05:54:38
【问题描述】:
我查看了来自 DotNet 的查询数据,发现:https://github.com/Azure/azure-kusto-samples-dotnet samples。
我在那里没有看到 ORM 示例,这让我自己尝试了一些东西
public class KustoContext : DbContext
{
public KustoContext(KustoConfiguration kustoConfiguration)
: base(new KustoConnectionStringBuilder(kustoConfiguration.ClusterUri, kustoConfiguration.DatabaseName)
.WithAadApplicationKeyAuthentication(kustoConfiguration.ClientId, kustoConfiguration.ClientSecret, kustoConfiguration.TenantId)
.ConnectionString)
{
}
public DbSet<SomeEntity> SomeEntities{ get; set; }
}
很遗憾,我收到一个错误:
抛出异常:System.Data.dll 中的“System.ArgumentException” System.Data.dll 中出现“System.ArgumentException”类型的未处理异常
不支持关键字:“应用程序客户端 ID”。
这是有道理的,我想我需要一个 adx 提供程序,但我找不到一个 NuGet 包。
理想情况下,我想将实体框架与 Azure 数据资源管理器一起使用。这可能吗?有没有可用的样品?
更新:实体框架有什么替代品吗?
【问题讨论】:
标签: entity-framework azure-data-explorer kql