gpt4 book ai didi

Azure 存储类型提供程序 : FS0039 on build but intellisense shows type as available

转载 作者:行者123 更新时间:2023-12-02 07:42:25 25 4
gpt4 key购买 nike

我正在尝试使用 Azure Storage Type Provider 从我们的 Azure 存储帐户访问类型。 :

type AzAcc = AzureTypeProvider<"{our ac name}","{our key}">
type clientEntity = AzAcc.Domain.FeedLabClientsEntity

我获得了 FeedLabClientsEntity 类型的智能感知,并且可以在没有 Visual Studio 'red squiggly' 的情况下继续,但在构建时上面的第二行会抛出错误

error FS0039: The type 'FeedLabClientsEntity' is not defined

如何访问此类型?

最佳答案

基本上这是TP的一个“功能”。与大多数其他急切地评估架构并预先生成类型系统的 TP 不同,Azure TP 按需生成类型,因此只有在您浏览 blob 或表时,这些类型才显得可访问。这主要是为了节省潜在的 IO - 如果您指向真实的 Azure 帐户,理论上您可以拥有无​​限数量的表和 blob。

您可以通过首先尝试使用例如访问适当的表来解决此问题。获取分区。

关于Azure 存储类型提供程序 : FS0039 on build but intellisense shows type as available,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37255314/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com