GithubHelp home page GithubHelp logo

Comments (11)

phnx47 avatar phnx47 commented on May 13, 2024 1

You have Connection in Base class, you can use Dapper directly

from dapper-repositories.

phnx47 avatar phnx47 commented on May 13, 2024

We can't to work with brackets and compination AND with OR right now.

"IsDeleted" embeded into the query for don't write it every time

For IsDeleted records, I will create another method

from dapper-repositories.

phnx47 avatar phnx47 commented on May 13, 2024

use for your method:

await base.FindAllAsync<User>(x => x.AuthorId == userId || x.IsPrivate == true , x => x.Author);

This should give you what you need

from dapper-repositories.

VladSnap avatar VladSnap commented on May 13, 2024

I understand, thanks for the answer!

If there is no support for complex Link expressions, you can add the ability to send sql. In the base class, I have only one method for this: ExecuteJoinQueryAsync

from dapper-repositories.

AndriiKuznietsov avatar AndriiKuznietsov commented on May 13, 2024

Found the same issue for expression with brackets '()'
As a workaround I've changed my expression to expression without brackets.
Please, fix this issue.

from dapper-repositories.

digitalmedia34 avatar digitalmedia34 commented on May 13, 2024

Having same issue with simple AND OR and order operation '( )'. Will this be fixed?

Thanks

from dapper-repositories.

phnx47 avatar phnx47 commented on May 13, 2024

@digitalmedia34 Right now, I don't have time for support '( )'. But, I can help you with PR for this project.

from dapper-repositories.

phnx47 avatar phnx47 commented on May 13, 2024

@digitalmedia34 I see, you have fork of this project. I think better work for one project, If you have some ideas, you can talk with me and try implement many things.

from dapper-repositories.

digitalmedia34 avatar digitalmedia34 commented on May 13, 2024

Yes I just dont see a good way of implementing expression orders. Do you have a suggestion?

from dapper-repositories.

phnx47 avatar phnx47 commented on May 13, 2024

@digitalmedia34 Need just translate '( )' to Sql. Research parsing Expression. After need tests with MsSql, MySql and PostgreSql, and be sure, that Sql - universal.

from dapper-repositories.

digitalmedia34 avatar digitalmedia34 commented on May 13, 2024

The problem is the way you are doing parameters, there is a order of precedent that we need to adhere to

from dapper-repositories.

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.