dotnetcore / dotnetcore/sharding-core

Linq中的where Context.[table].Any(...)未能使用分表

Open
#245 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.3k
Forks
183
Avg merge
7h 43m
Merged PRs (30d)
1

Description

有表A和表B,其中表B采用了按创建时间的月份分表,执行以下查询的时候未能从分表中查询数据:
```C#
var test = from a in Context.A
where Context.B.Any(
b => b.foreignId == a.Id
&& b.column1 == "1" || a.column2 > 0)
```
有好的办法解决这个问题吗?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.