I'm trying to execute a Query Spec query using FetchQueryAsync in an F# asynchronous computation expression.
For example:
let getNewItemRequestEntity (aggregateId: string) =
async {
use da = new DataAccessAdapter()
let qf = QueryFactory()
let q =
qf.NewItemRequest
.Where(NewItemRequestFields.AggregateId.Equal(Guid.Parse(aggregateId)))
return!
da.FetchQueryAsync<NewItemRequestEntity>(q, CancellationToken.None)
|> Async.AwaitTask
}
This code fails to compile with the following error:
The type 'AsyncBuilder' is not compatible with the type 'IEntityFieldCore'
I've searched the internet, but I can't find why this might be.
Is this something known? Or maybe there is a work around? I can use the non-async methods to execute the queries, but I'd prefer to use the async operations.
I'm using LLBLGen Pro 5.9.0
Thank you for any help.