Skip to content

Little guidance requested for custom async ORM #1213

@chris-kruining

Description

@chris-kruining

Hi,
I'm not quite certain this is the right place to ask, but I want to give it a shot any way.

I am trying to create a ORM for C#, for this I would like to utilise the 'new' IAsyncEnumerable. To prevent me from completely re-inventing the wheel I would like to use the power of linq.
I have discovered that it is possible to create a provider for linq via the IQueryable interfave. If I understand correctly this means that I can create a sql string builder via a custom provider for my ORM.

However this seems limited to synchronous code as far as I understand it.
Could I maybe get a starting of point where I basically can create a streaming api where I create a query via linq and get a IAsyncEnumerable<TModel> as output? Or is this just not possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions