【问题标题】:Azure Data Explorer C# querying and ORMAzure 数据资源管理器 C# 查询和 ORM
【发布时间】: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


    【解决方案1】:

    理想情况下,我想将实体框架与 Azure 数据资源管理器一起使用。这可能吗?有没有可用的样品?

    我相信没有人为 Azure 数据资源管理器编写过实体框架提供程序。

    【讨论】:

    • ADX 团队是否会宣布/提议某一天他们将开始工作?或者根本就在他们的路线图中?
    猜你喜欢
    • 2020-04-07
    • 1970-01-01
    • 2020-05-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-25
    相关资源
    最近更新 更多