Comments (11)
You have Connection in Base class, you can use Dapper directly
from dapper-repositories.
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.
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.
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.
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.
Having same issue with simple AND OR and order operation '( )'. Will this be fixed?
Thanks
from dapper-repositories.
@digitalmedia34 Right now, I don't have time for support '( )'. But, I can help you with PR for this project.
from dapper-repositories.
@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.
Yes I just dont see a good way of implementing expression orders. Do you have a suggestion?
from dapper-repositories.
@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.
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)
- Why BulkUpdate and BulkUpdateAsync cannot be override HOT 2
- It is recommended that Metadata attributes be added to the CreateAt and Version fields
- It is recommended to define a method to set the default value to be called when a new modification is added. HOT 1
- SetLimit doesn't have proper pagination
- How to include three levels of nesting by AEntity.FindById<BEntity> HOT 1
- InsertAsync/Insert Cannot return the primary key value after inserting HOT 2
- DapperRepository method missing CancellationToken override. HOT 3
- doesn't support the use of Trim(), ToLower(), ToUpper(), Reverse() (and possibly a few other linq methods) HOT 1
- Metadata attributes be added to the CreateAt and Version fields HOT 2
- Dependency Dashboard
- Dependency Dashboard
- error on update using SqlProvider.PostgreSQL HOT 11
- Issue for MsSql in DapperRepository.BulkInsert and DapperRepository.BulkUpdate Items left behind because of exceededTimes Miscalculation HOT 1
- Subclass of collection property map & retrive datas
- MSSQL Updating a property of type Byte with a null value cause an SqlException HOT 1
- Generate tables from model HOT 1
- Underscored names don't work with MatchNamesWithUnderscores = true HOT 3
- Insert with PK specified ignores explicit PK value suppplied HOT 3
- How to define SqlProvider
- Allow `bool?` for Status attribute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dapper-repositories.