Comments (11)
问题1 where怎么写的
问题2 你应该用的是netframework?由于是netstandard库,是会比较多小包。未来是这个趋势,按数据库拆分其实不会少几个dll。
from freesql.
await _postCategoryRepository.Select.Where(p => p.ParentId.Equals(Guid.Empty)).ToListAsync();
from freesql.
https://github.com/2881099/FreeSql/wiki/%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%87%BD%E6%95%B0
这里是表达式解析的列表
可以直接用 = 判断,equals没支持,回头我支持一下,谢谢提醒
from freesql.
“然后还有一个问题,我使用mysql数据库,打包时打了一堆别的数据库dll,”
这个问题是样的,我部署到docker中,每次 restore project 时会去拉所有引用的包,
那天网不好,每次都是断在 freesql的还原,然后我看了它引用了一些别的数据库dll,所以我有了这个想法。
from freesql.
.Where("ParentId = ?ParentId", new { ParentId = Guid.Empty })
这是我之前找到方式,不知道你说的是这个意思不。
from freesql.
了解了,看来还是得拆。
不过到时候会暴露一些,对外部没多少意义的方法和类。
from freesql.
.Where("ParentId = ?ParentId", new { ParentId = Guid.Empty })
这是我之前找到方式,不知道你说的是这个意思不。
这种也可以,我说的是 .Where(p => p.ParentId == Guid.Empty)
from freesql.
我现在把 Equals 改成和 == 一样的行为了。
当右表达式值为 NULL 时,会变为 ParentId is null
from freesql.
is null, is not nul 这个行为之前就有
from freesql.
谢谢你的提醒
from freesql.
#55
现在按小包拆分发布了,谢谢
from freesql.
Related Issues (20)
- 如何手工关闭数据库连接? HOT 10
- 使用ExecuteUpdatedAsync时若没有Set操作,会导致异常 HOT 1
- 达梦数据库,数据库连接总是“请求执行超时”! HOT 8
- Transaction访问量过大时会导致【事务(进程 ID 897)与另一个进程被死锁在 锁 | 线程 资源上,并且已被选作死锁牺牲品。请重新运行该事务】
- 在oracle中有这样的数据类型 NUMBER(38,8)。 在c#是没有对应类型的。该如何解决? HOT 1
- 分库分表历史表场景下,历史数据插入路由错误,没有进历史表 HOT 2
- 升级3.2.808版本之后clickhouse Contains查询出错 HOT 3
- Repository模式下InsertOrUpdate出错 HOT 4
- 关于使用Ado执行存储过程output为空
- 关于分库的问题 HOT 1
- Inconsistency in handling NULL values in InsertOrUpdateDict method for single and multiple Dictionary parameters HOT 1
- 多表联表查询时设置了别名, ON 那里的别名还是默认的a、b HOT 2
- 偶发性错误 【主库】仍然不可用,下一次恢复检查时间 HOT 2
- 脏读问题 HOT 8
- Aop.AuditValue 无法取消某个字段的更新 HOT 5
- clickhouse使用字典方式更新失败 HOT 2
- IBaseRepository.UpdateAsync()方法批量更新概率性报错 HOT 1
- Sqlite的CodeFirst模式中DateTime类型与DataGrip的兼容性问题 HOT 7
- 各个实例需单独分开的OneToMany如何处理? HOT 4
- 多表事务操作如果未建表提示database is locked HOT 1
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 freesql.