I am trying to access a type from our Azure Storage account using the Azure Storage Type Provider:
type AzAcc = AzureTypeProvider<"{our ac name}","{our key}">
type clientEntity = AzAcc.Domain.FeedLabClientsEntity
I get intellisense for the FeedLabClientsEntity
type and can proceed without the Visual Studio 'red squiggly' but on build the second line above throws the error
error FS0039: The type 'FeedLabClientsEntity' is not defined
How can I access this type?
Basically this is a "feature" of the TP. Unlike most other TPs which eagerly evaluate schema and generate the type system up front, the Azure TP generates types on demand, so only once you navigate through blobs or tables do those types appear accessible. It most mostly due to save on potential IO - if you point to a real Azure account, theoretically you could have an infinite number of tables and blobs.
You can work around this by first trying to access the appropriate table using e.g. GetPartition.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With