Code Monkey home page Code Monkey logo

Comments (7)

maxtoroq avatar maxtoroq commented on August 19, 2024 1

Hi. Decided I don't want to maintain code I don't use and don't fully understand (not a good recipe thinking long term). However, if you want to create your own project/package (e.g. DbExtensions.Async) then I'd be happy to make it easier for you, e.g. giving you access to internal members using [InternalsVisibleTo], or making non-breaking changes so the integration is easier.

from dbextensions.

maxtoroq avatar maxtoroq commented on August 19, 2024

No plans currently. I don't know enough about async. I'd accept guidance to evaluate feasibility.

from dbextensions.

gideonkorir avatar gideonkorir commented on August 19, 2024

I was talking about the *.Async APIs on DbConnection e.g. connection.OpenAsync and DbCommand e.g. command.ExecuteScalaAsync.
We could have something like IAsyncDatabase that depends on the System.Data.Common APIs?

I've tried implementing it but some classes e.g. SqlSet constructor is marked internal.
Hope that makes sense. Will to help out.

from dbextensions.

maxtoroq avatar maxtoroq commented on August 19, 2024

If I understand correctly, the idea is to add methods to the API that, instead of returning T, return Task<T>. What are the methods you tried to implement?

from dbextensions.

gideonkorir avatar gideonkorir commented on August 19, 2024

Hi, was passed out the entire time :) I hadn't gotten to working with SqlSet and SqlTable but here is a gist on IDatabase IAsyncDatabase. Because in V6 we are using IDbConnection I added helper methods to try execute the operation in Async fashion if possible

from dbextensions.

gideonkorir avatar gideonkorir commented on August 19, 2024

Awesome thanks, the team decided to use NPoco for the current project but I don't mind working on an Async version. I can fork the project and make the necessary changes in my fork then I can keep updating you on what changes I would need and why, does that sound ok?

from dbextensions.

maxtoroq avatar maxtoroq commented on August 19, 2024

Sounds good.

from dbextensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.