azure - ASP .NET Core 和 Azure 表存储

标签 azure asp.net-core azure-table-storage

我是ASP.NET Core的新手,我们必须实现一个应用程序来存储一些非关系数据(类似于 Excel 的表中的一些行),因此我们决定使用 Azure Tables 。据我了解EntityFramework Core不支持AzureTables...在这种情况下正确的方法是什么?

最佳答案

Entity Framework 是数据库的 ER 映射器。 Azure 表存储是一种 NoSQL 类型的解决方案。请在此处找到有关使用可用 NuGet 包的更多信息:

Windows Azure Storage

另一个很棒的资源是Get started with Azure Table storage using .NET ,这将为您提供开始使用表存储所需的所有信息。

由于您使用的是 ASP.NET Core,因此您不应从 web.config 读取设置,而应从 appsettings.json 读取设置。 CloudStorageAccount 有一个静态 .Parse 方法,它将解析 ConnectionString 并为您创建一个 CloudStorageAccount 实例。在这里查看如何从 ASP.NET Core 中的 appsettings.json 读取设置:Configuration in ASP.NET Core | Microsoft Docs .

关于azure - ASP .NET Core 和 Azure 表存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45013891/

相关文章:

c# - 无法从表存储中获取记录

azure - Windows 命令提示符curl POST 运行 Azure DevOps 管道

azure - Azure 上端口 443 的 Kubernetes list

Spring:Azure 功能管理器功能切换 Microsoft.Targeting bean 未找到

asp.net-mvc - .NET Core MVC项目中的Autofac属性注入(inject)

azure - 保护 Azure 表存储的安全

Azure SSL 证书显示 guest 用户错误

visual-studio - 在 Blazor 中以编程方式注册页面,而不是使用 LazyAssemblyLoader 使用 @page 指令

asp.net-core - 如何在 EF Core 中添加父记录及其子记录

azure - Windows Server AppFabric 自定义配置提供程序问题