现在有ArticleCate文章类别和Article文章两张表。
现在要删除文章类别的一条数据,需要先Include 类别的导航属性。
因为文章表数据量比较大 Include操作比较耗时。
有没有好一些的解决办法。
不想用直接手写sql来删除的方法。
Include的时候可不可以忽略一些字段不加载进来,因为文章表也就Content字段数据多一些。
相关问题
- How to include FFI in OS X?
- One large include file or several smaller ones?
- Why can't I pass variables into an included fi
- How to include a file that defines constants in a
- Write a macro for C/C++ #include
相关文章
- 问个ef core 投影问题
- Entity Framework Core如何设置3个表联合查询(Join)
- Identify which file has included some particular h
- String concatenation for include path
- Is possible to split PHP configuration file php.in
- What should I #include to use 'htonl'?
- shielding #include within namespace { } block?
- Classic ASP #include virtual not working
可以试试 Entity Framework Core Plus
1 排除字段:我记得EF 查询时时有.ignore的方法的
2 加载部分字段:找了一下
https://ithelp.ithome.com.tw/questions/10192142
https://www.cnblogs.com/webapi/p/10449319.html