Skip to content

Add ofIQueryable method #111

@xperiandri

Description

@xperiandri

Actual behavior

Currently to produce AsynSeq from IQueryable I have to write

(query {
    for biblioteko in context.Bibliotekoj do
        where (biblioteko.ID = bibliotekoId)
        select biblioteko
 }).AsAsyncEnumerable()
|> AsyncSeq.ofAsyncEnum
|> AsyncSeq.tryFirst

Expected behavior

But I could write

(query {
    for biblioteko in context.Bibliotekoj do
        where (biblioteko.ID = bibliotekoId)
        select biblioteko
 })
|> AsyncSeq.ofIQueryable
|> AsyncSeq.tryFirst

Related information

  • FSharp.Control.AsyncSeq 2.0.23

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions