Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query: add translation for string.IndexOf(string, int) #25396 #25655

Closed
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
440 commits
Select commit Hold shift + click to select a range
2be234d
ModelBuilding: Add regression test for #18149 (#26096)
smitpatel Sep 18, 2021
ef68226
Adding grouping tests from EF6 (#26069)
ajcvickers Sep 18, 2021
901bfb4
Merge branch 'release/6.0-rc2' into release/6.0
ajcvickers Sep 18, 2021
c87f09c
Merge branch 'release/6.0'
ajcvickers Sep 18, 2021
2453c3b
[6.0-rc2] Fully support int identity seed (#26066)
roji Sep 18, 2021
a134dc6
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 18, 2021
7d56b56
Reflect reality (#26099)
ErikEJ Sep 19, 2021
173f229
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Sep 20, 2021
29230f2
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 20, 2021
c6a9f1c
When sorting update commands add Deleted + Inserted number of edges i…
AndriySvyryd Sep 20, 2021
ccde2d5
Always store join table schema in the snapshot.
AndriySvyryd Sep 20, 2021
501c60a
Add a check to ShouldUseSameServiceProvider even when the extension h…
AndriySvyryd Sep 20, 2021
7ffacdb
Tools: Check for unsupported OS-specific TFMs
bricelam Sep 17, 2021
b3dd333
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 20, 2021
0e26b07
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Sep 20, 2021
254dee8
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Sep 21, 2021
904df3f
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 21, 2021
3697418
Update the entity type on check constraints when it's converted to a …
AndriySvyryd Sep 21, 2021
fe9a92d
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 21, 2021
398dba2
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 21, 2021
7381df3
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 21, 2021
13a1cdd
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 21, 2021
de7b55d
Merge branch 'release/6.0-rc2' into release/6.0
ajcvickers Sep 21, 2021
3cc19f3
Merge branch 'release/6.0'
ajcvickers Sep 21, 2021
b8e147f
Bump Microsoft.Azure.Cosmos from 3.20.1 to 3.21.0
dependabot[bot] Sep 21, 2021
afaeff0
Fix to #24490 - Update exception message when correlated collection c…
maumar Sep 16, 2021
57b8529
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 22, 2021
897e63f
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Sep 22, 2021
1103fc0
Merge in 'release/5.0' changes
dotnet-bot Sep 22, 2021
3b67c3d
Use the correct value when the discriminator is part of the key.
AndriySvyryd Sep 22, 2021
2b2f3a3
Preserve extension registration order
AndriySvyryd Sep 22, 2021
1c74909
Microsoft.Data.Sqlite: Also try the .NET 5+ ApplicationData API
bricelam Sep 20, 2021
43f379f
Improve exception message for a shadow skip navigation
AndriySvyryd Sep 22, 2021
e0dbe5a
Fix snapshot generation with HiLo (#26136)
roji Sep 22, 2021
8f531d4
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Sep 22, 2021
2a9ffbb
Allow HasKey to override HasNoKey
AndriySvyryd Sep 22, 2021
2e2f439
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 23, 2021
af389b2
Throw a better exception for relationships to keyless entity types
AndriySvyryd Sep 23, 2021
23767aa
Set ValueGenerated.OnUpdateSometimes when more than two properties sh…
AndriySvyryd Sep 23, 2021
2e683aa
Merge branch 'release/6.0'
ajcvickers Sep 23, 2021
5e382f1
[6.0] Code cleanup on EFCore project (#26100)
ajcvickers Sep 23, 2021
e94739a
Tools: Warn/error when using new features on old runtimes
bricelam Sep 21, 2021
2bec43f
Fix SQL Server NTS scaffolding code generation (#26160)
roji Sep 23, 2021
059433e
Code literal support for DateOnly/TimeOnly (#26159)
roji Sep 23, 2021
48b7672
Cosmos: Set ValueGenerated.Never for most integer properties
AndriySvyryd Sep 23, 2021
3a1096b
[6.0] Code cleanup for remaining product projects (#26164)
ajcvickers Sep 24, 2021
b1411a7
Merge branch 'release/6.0'
ajcvickers Sep 24, 2021
068641e
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Sep 24, 2021
289e7a6
[6.0] Remove excessive spaces from XML doc comments (#26170)
ajcvickers Sep 24, 2021
6437f7e
Merge branch 'release/6.0'
ajcvickers Sep 24, 2021
0042685
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Sep 27, 2021
db1add6
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 27, 2021
1c27f61
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 27, 2021
f626a7e
Fix to #26084 - Query: SqlExpressionFactory doesn't apply type mappin…
maumar Sep 23, 2021
3b01cf0
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 28, 2021
fe1e482
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 29, 2021
7f29219
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Sep 29, 2021
d53a15c
InMemory: Expand owned navigation as optional always (#26213)
smitpatel Sep 30, 2021
d5a02d7
Fix to #26166 - Idempotent migration script generates problematic tem…
maumar Sep 27, 2021
3b300c1
[6.0] RevEng: Initialize skip collection navigations in ctor (#26212)
smitpatel Sep 30, 2021
59e5a05
[6.0] Separate design time and runtime service for NamedConnectionStr…
ajcvickers Sep 30, 2021
d13ff7c
Merge branch 'release/6.0'
ajcvickers Sep 30, 2021
1c92dc3
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 1, 2021
8430dd3
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Oct 1, 2021
60446f7
Discover join type FK properties using the same naming convention as …
AndriySvyryd Oct 1, 2021
a4c45a4
Use covariant return types in RelationalTypeMappingSource (#26224)
roji Oct 1, 2021
c1f5843
Docs typo (#26225)
roji Oct 1, 2021
b8c2e82
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 1, 2021
eae5df7
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 1, 2021
19970e9
Merge branch 'release/6.0'
ajcvickers Oct 2, 2021
c634711
[6.0] Respect AsNoTrackingWithIdentityResolution in AsTracking method…
ajcvickers Oct 3, 2021
235a6ed
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 4, 2021
93ef75f
Fix context pooling concurrency issue (#26226)
roji Oct 4, 2021
37fa3e4
[6.0] Use correct value comparer for generated FK properties (#26240)
ajcvickers Oct 4, 2021
29e2c15
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 4, 2021
7af9416
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 4, 2021
b30f55d
Query: Throw for FromSql+Any pattern which has been mutated (#26211)
smitpatel Oct 4, 2021
8152343
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 5, 2021
6a5b885
Merge branch 'release/6.0'
ajcvickers Oct 5, 2021
48e254b
Update branding for 3.1.21 (#26253)
vseanreesermsft Oct 5, 2021
4e82e26
Merge in 'release/3.1' changes
dotnet-bot Oct 5, 2021
38cc1c0
Switch to 1ES servicing pools on release/3.1 (#26150)
jonfortescue Oct 5, 2021
eff68ee
Merge in 'release/3.1' changes
dotnet-bot Oct 5, 2021
5ad5c29
Update branding for 5.0.12 (#26254)
vseanreesermsft Oct 5, 2021
5de05f4
Merge in 'release/5.0' changes
dotnet-bot Oct 5, 2021
a80ff07
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Oct 5, 2021
7b774da
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Oct 5, 2021
24320aa
Bump Microsoft.Data.SqlClient to 2.1.4
bricelam Oct 4, 2021
b5dc5c7
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 5, 2021
8596a0e
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Oct 5, 2021
3ccbe27
Fix API docs errors (#26261)
smitpatel Oct 6, 2021
1603c23
Merge branch 'release/3.1' into release/5.0
ajcvickers Oct 6, 2021
5e92afd
Merge in 'release/5.0' changes
dotnet-bot Oct 6, 2021
299e9b4
[5.0.x] Fix context pooling concurrency issue (#26241)
roji Oct 6, 2021
8e7566d
Merge in 'release/5.0' changes
dotnet-bot Oct 6, 2021
d1b12fe
Merge branch 'release/5.0' into release/6.0
ajcvickers Oct 6, 2021
0ec1111
Fix merge issues
ajcvickers Oct 6, 2021
9921a2e
Merge branch 'release/6.0'
ajcvickers Oct 6, 2021
e19169f
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 7, 2021
41db08c
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 7, 2021
26f82f0
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 7, 2021
36f6e82
More GroupBy tests (#26105)
ajcvickers Oct 7, 2021
8144d50
Fix to #25954 - [EFCore 6.0] [Firebird] Problem with test NorthwindMi…
maumar Oct 7, 2021
d04a65c
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 7, 2021
2b60270
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 7, 2021
458569e
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 8, 2021
74f0c56
[release/6.0] Update dependencies from dotnet/runtime (#26286)
dotnet-maestro[bot] Oct 8, 2021
92354b2
Fix to #26271 - Temporal history table name always based on entity ty…
maumar Oct 8, 2021
81c317a
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 9, 2021
938a8b0
[6.0] Mark internal the ValueConverter constructors that allow conver…
ajcvickers Oct 9, 2021
9b66f4c
Merge branch 'release/6.0'
ajcvickers Oct 9, 2021
9dd8f67
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 11, 2021
2e0c4a4
[6.0] Test changes to make sure applicationName is set when using new…
ajcvickers Oct 11, 2021
38622b1
Merge branch 'release/6.0'
ajcvickers Oct 11, 2021
05e45a4
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 11, 2021
e7944bd
Merge branch 'main' of https://github.com/dotnet/efcore
ajcvickers Oct 11, 2021
ea453ea
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 11, 2021
077edf4
Merge in 'release/5.0' changes
dotnet-bot Oct 11, 2021
e28fe99
Full coverage for CSharpSnapshotGenerator (#26297)
ajcvickers Oct 11, 2021
2608db0
Make Projection_AsEnumerable_projection deterministic (#26285)
roji Oct 11, 2021
8a84c6e
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 12, 2021
f6fec99
Update ProxyGraphUpdatesInMemoryTest (#26301)
ajcvickers Oct 12, 2021
290a8fa
[main] Update dependencies from dotnet/arcade (#26306)
dotnet-maestro[bot] Oct 12, 2021
8892829
[release/6.0] Update dependencies from dotnet/arcade (#26274)
dotnet-maestro[bot] Oct 12, 2021
d027613
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 12, 2021
19ae308
Merge commit '1103fc01ad2b1d1d3e4312cc406c836e1745fb6f' into internal…
vseanreesermsft Oct 12, 2021
8358588
Merge commit '8f531d42d3b96c7762ec3b18388466cfd8f8f3fc' into internal…
vseanreesermsft Oct 12, 2021
452844e
Update to 3.1.120 SDK
dougbu Oct 12, 2021
6840bb6
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 12, 2021
cc84d32
Merge pull request #26319 from vseanreesermsft/internal-merge-3.1-202…
dougbu Oct 12, 2021
4a78a86
Merge in 'release/3.1' changes
dotnet-bot Oct 12, 2021
1a3f625
update odata tests to 8.0
maumar Sep 29, 2021
78f0989
Update SDK
BrennanConroy Oct 13, 2021
a0c94f7
Merge pull request #26318 from vseanreesermsft/internal-merge-5.0-202…
dougbu Oct 13, 2021
ff5c6fd
Merge in 'release/5.0' changes
dotnet-bot Oct 13, 2021
d5a7cce
Cosmos: remove automatic composition of discriminator filter in raw S…
roji Oct 13, 2021
f15d127
Merge branch 'release/3.1' into release/5.0
ajcvickers Oct 13, 2021
53ee899
Merge in 'release/5.0' changes
dotnet-bot Oct 13, 2021
9ce0790
Merge branch 'release/5.0' into release/6.0
ajcvickers Oct 13, 2021
bccfcae
Merge branch 'release/6.0'
ajcvickers Oct 13, 2021
fffdcb5
Add TL;DR section for daily builds (#26300)
ajcvickers Oct 13, 2021
33d783a
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 13, 2021
8d3ca1a
Merge in 'release/5.0' changes
dotnet-bot Oct 13, 2021
1957936
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 13, 2021
7c558a7
Some regression tests for OData related issues (#26324)
maumar Oct 13, 2021
03212ca
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 13, 2021
59e9ff2
Removing unnecessary spatial test for InMemory (#26335)
maumar Oct 13, 2021
c1b9245
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 14, 2021
9e3ee59
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 14, 2021
07d281b
Switch to 1ES R&D pools on main (#26320)
jonfortescue Oct 14, 2021
1445aa9
[6.0] Flag all properties as not unknown when saving changes (#26346)
ajcvickers Oct 14, 2021
385d6c1
Merge branch 'release/6.0'
ajcvickers Oct 14, 2021
7eb337c
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 14, 2021
2d5d373
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 14, 2021
9eec604
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Oct 15, 2021
bc24387
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 15, 2021
3ff03a3
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 15, 2021
33955bf
Fix to #19356 - Query: Add more tests for Queryable.Reverse
maumar Oct 12, 2021
f70080d
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 15, 2021
bb46c5e
Fix to #26353 - Test Subquery_with_Distinct_Skip_FirstOrDefault_witho…
maumar Oct 15, 2021
bb4036b
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Oct 16, 2021
6f3fcc1
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 16, 2021
a11c2cc
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 16, 2021
9569575
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Oct 16, 2021
50ca90c
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 16, 2021
9e855f4
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 18, 2021
ab8a369
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 18, 2021
896f4e1
Configure the correct end as principal for self-ref collection with […
AndriySvyryd Oct 18, 2021
7ccb53a
Fix to #26357 - [Q] SqlNullabilityProcessor.VisitSqlFunction, Nullabi…
maumar Oct 18, 2021
e2008be
[main] Update dependencies from dotnet/runtime (#26390)
dotnet-maestro[bot] Oct 19, 2021
ecb961b
[main] Update dependencies from dotnet/arcade (#26391)
dotnet-maestro[bot] Oct 19, 2021
5249c67
[release/6.0] Update dependencies from dotnet/runtime (#26400)
dotnet-maestro[bot] Oct 19, 2021
8e355d3
Merge branch 'release/6.0'
ajcvickers Oct 19, 2021
a2073ca
Improved exception messages (#26398)
ajcvickers Oct 19, 2021
753f14c
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Oct 19, 2021
dbc4314
No test left behind (#26382)
ajcvickers Oct 19, 2021
7dd977a
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 20, 2021
432e3cf
[release/6.0] Update dependencies from dotnet/runtime (#26414)
dotnet-maestro[bot] Oct 20, 2021
7261b64
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 21, 2021
5e27aaa
Fix to #26397 - Query/Test: convert the "no_data" tests in NorthwindA…
maumar Oct 21, 2021
a04108f
Merge branch 'release/6.0'
ajcvickers Oct 21, 2021
b18a7ef
Fix merge issues
ajcvickers Oct 21, 2021
53df7fe
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 21, 2021
9b3a2d7
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 22, 2021
c3baaac
[internal/release/3.1] Update dependencies from dnceng/internal/dotne…
dotnet-bot Oct 22, 2021
adc60bd
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 23, 2021
0e37421
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 23, 2021
f62cf1b
Use remarks in XML docs (#26439)
ajcvickers Oct 23, 2021
756b21e
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Oct 25, 2021
cc53b3e
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 25, 2021
21318f1
Fix to #26344 - SqlNullabilityProcessor and COALESCE with more than t…
maumar Oct 18, 2021
3d67196
Update to .NET SDK 6.0 RC2 (#26394)
bricelam Oct 27, 2021
68fc366
Check and update service lifetime docs (#26445)
ajcvickers Oct 27, 2021
2d2fcdc
No skipped tests in non-functional tests (#26450)
ajcvickers Oct 27, 2021
5fb9f37
Query: Throw exception for null key value in non-tracking (#26311)
smitpatel Oct 28, 2021
a09fe49
Query: Remove obsoleted code (#26475)
smitpatel Oct 28, 2021
90f0808
Evolve null-checking approach (#26459)
ajcvickers Oct 28, 2021
30edaf7
Query: Convert IReadOnlyCollection.Count to Queryable.Count() (#26483)
smitpatel Oct 28, 2021
93b378d
Identify WITH as generally composable in FromSql (#26484)
roji Oct 29, 2021
631341f
Query: Identify Contains on IReadOnlySet/IImmutableSet (#26487)
smitpatel Nov 1, 2021
2bb61e6
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Nov 1, 2021
2427aee
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Nov 1, 2021
ce751dc
Evolve null-checking approach in EFCore.Design (#26481)
ajcvickers Nov 2, 2021
68af9e0
Do not scaffold a default constructor when OnConfiguring is suppresse…
0xced Nov 2, 2021
b80be51
Update branding to 6.0.1 (#26511)
dougbu Nov 2, 2021
3d216b4
Update branding for 5.0.13 (#26513)
vseanreesermsft Nov 2, 2021
893af6e
Update branding for 3.1.22 (#26512)
vseanreesermsft Nov 2, 2021
5461f2b
Evolve null-checking approach in EFCore.InMemory (#26509)
ajcvickers Nov 3, 2021
6525fc6
Merge branch 'release/3.1' into release/5.0
ajcvickers Nov 3, 2021
22d1a09
Merge branch 'release/5.0' into release/6.0
ajcvickers Nov 3, 2021
43e8b3f
Merge branch 'release/6.0'
ajcvickers Nov 3, 2021
5b50ec7
Bump Microsoft.Azure.Cosmos from 3.21.0 to 3.22.1 (#26503)
dependabot[bot] Nov 3, 2021
99f1674
Query: Cleanup regarding TODO notes (#26533)
smitpatel Nov 4, 2021
74f4e5e
Evolve null-checking approach in extensions (#26527)
ajcvickers Nov 4, 2021
ab518a9
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Nov 4, 2021
f2ab096
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Nov 4, 2021
1a161c0
Evolve null-checking approach in SQL Server (#26534)
ajcvickers Nov 5, 2021
252ece7
Evolve null-checking approach in Relational (#26537)
ajcvickers Nov 5, 2021
0a5ad1a
Update dependencies from https://github.com/dotnet/runtime build 2021…
dotnet-maestro[bot] Nov 8, 2021
c8e656a
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Nov 8, 2021
c5aa799
Fix MigrationsSqliteTest tests (#26572)
bobbyangers Nov 8, 2021
dbc86fd
Summary of the changes (#26566)
bobbyangers Nov 8, 2021
491e1b5
Fix typo (#26575)
mburleigh Nov 8, 2021
8328e0f
Update to latest SDK and runtimes (#26583)
dougbu Nov 9, 2021
53fbd04
Evolve null-checking approach in EFCore (#26557)
ajcvickers Nov 9, 2021
b4f4d83
Merge commit '8d3ca1a23a881f6ff435c797a43b1d893328eee9' into internal…
vseanreesermsft Nov 9, 2021
2a5705c
Merge commit 'c3baaac7ee60c016333566a5097789fe183afe69' into internal…
vseanreesermsft Nov 9, 2021
cb3fb89
Merge pull request #26595 from vseanreesermsft/internal-merge-5.0-202…
dougbu Nov 9, 2021
cd01454
Merge pull request #26596 from vseanreesermsft/internal-merge-3.1-202…
dougbu Nov 9, 2021
62dc53f
RevEng: Consider skip navigation names when generating identifier for…
smitpatel Nov 9, 2021
c426423
Merge pull request #26600 from dotnet-maestro-bot/merge/release/6.0-t…
Nov 9, 2021
32ca7e7
Avoid NRE in ForeignKeyAttributeConvention
AndriySvyryd Nov 9, 2021
539aee7
Allow non-nullable value comparer to be applied on nullable properties
AndriySvyryd Nov 9, 2021
e0348cf
Register design-time LoggerFactory as Scoped
AndriySvyryd Nov 9, 2021
0c74522
Query: Copy client projections when updating SelectExpression (#26431)
smitpatel Nov 9, 2021
f703b6b
Update SDK (#26577)
BrennanConroy Nov 9, 2021
bf3c95b
[release/6.0] Update to latest SDK and runtimes (#26584)
dougbu Nov 9, 2021
7c32c75
Merge branch 'release/3.1' into release/5.0
ajcvickers Nov 10, 2021
fdd0012
Merge branch 'release/5.0' into release/6.0
ajcvickers Nov 10, 2021
846070d
Merge branch 'release/6.0'
ajcvickers Nov 10, 2021
6ae128a
[6.0.1] Microsoft.Data.Sqlite: Clean up on application exit (#26529)
bricelam Nov 10, 2021
6286284
Merge pull request #26609 from dotnet-maestro-bot/merge/release/6.0-t…
Nov 10, 2021
0f848a3
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Nov 10, 2021
ca6c54b
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Nov 10, 2021
6cf7980
Move to OSX 11.0 for helix queues (#26614)
smitpatel Nov 10, 2021
cb6d523
Move to OSX 11.0 for helix queues (#26615)
smitpatel Nov 10, 2021
463700c
Merge branch 'release/5.0'
smitpatel Nov 10, 2021
3f9a137
Merge branch 'release/6.0'
smitpatel Nov 10, 2021
a6efd11
Merge branch '25396_string_IndexOf(string_int)' of https://github.com…
smitpatel Nov 11, 2021
75ec146
PR cleanup
smitpatel Nov 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public class SqlServerStringMethodTranslator : IMethodCallTranslator
private static readonly MethodInfo _indexOfMethodInfo
= typeof(string).GetRequiredRuntimeMethod(nameof(string.IndexOf), new[] { typeof(string) });

private static readonly MethodInfo _indexOfMethodInfoWithStartingPosition
= typeof(string).GetRequiredRuntimeMethod(nameof(string.IndexOf), new[] { typeof(string), typeof(int) });

private static readonly MethodInfo _replaceMethodInfo
= typeof(string).GetRequiredRuntimeMethod(nameof(string.Replace), new[] { typeof(string), typeof(string) });

Expand Down Expand Up @@ -120,46 +123,12 @@ public SqlServerStringMethodTranslator(ISqlExpressionFactory sqlExpressionFactor
{
if (_indexOfMethodInfo.Equals(method))
{
var argument = arguments[0];
var stringTypeMapping = ExpressionExtensions.InferTypeMapping(instance, argument)!;
argument = _sqlExpressionFactory.ApplyTypeMapping(argument, stringTypeMapping);

SqlExpression charIndexExpression;
var storeType = stringTypeMapping.StoreType;
if (string.Equals(storeType, "nvarchar(max)", StringComparison.OrdinalIgnoreCase)
|| string.Equals(storeType, "varchar(max)", StringComparison.OrdinalIgnoreCase))
{
charIndexExpression = _sqlExpressionFactory.Function(
"CHARINDEX",
new[] { argument, _sqlExpressionFactory.ApplyTypeMapping(instance, stringTypeMapping) },
nullable: true,
argumentsPropagateNullability: new[] { true, true },
typeof(long));

charIndexExpression = _sqlExpressionFactory.Convert(charIndexExpression, typeof(int));
}
else
{
charIndexExpression = _sqlExpressionFactory.Function(
"CHARINDEX",
new[] { argument, _sqlExpressionFactory.ApplyTypeMapping(instance, stringTypeMapping) },
nullable: true,
argumentsPropagateNullability: new[] { true, true },
method.ReturnType);
}

charIndexExpression = _sqlExpressionFactory.Subtract(charIndexExpression, _sqlExpressionFactory.Constant(1));
return TranslateIndexOf(instance, method, arguments[0], null);
}

return _sqlExpressionFactory.Case(
new[]
{
new CaseWhenClause(
_sqlExpressionFactory.Equal(
argument,
_sqlExpressionFactory.Constant(string.Empty, stringTypeMapping)),
_sqlExpressionFactory.Constant(0))
},
charIndexExpression);
if (_indexOfMethodInfoWithStartingPosition.Equals(method))
{
return TranslateIndexOf(instance, method, arguments[0], arguments[1]);
}

if (_replaceMethodInfo.Equals(method))
Expand Down Expand Up @@ -470,6 +439,61 @@ private SqlExpression TranslateStartsEndsWith(SqlExpression instance, SqlExpress
pattern);
}

private SqlExpression TranslateIndexOf(SqlExpression instance, MethodInfo method, SqlExpression searchExpression, SqlExpression? startIndex)
{
var stringTypeMapping = ExpressionExtensions.InferTypeMapping(instance, searchExpression)!;
searchExpression = _sqlExpressionFactory.ApplyTypeMapping(searchExpression, stringTypeMapping);
smitpatel marked this conversation as resolved.
Show resolved Hide resolved

SqlExpression[] charIndexArguments;
smitpatel marked this conversation as resolved.
Show resolved Hide resolved
if (startIndex is null)
{
charIndexArguments = new[] { searchExpression, _sqlExpressionFactory.ApplyTypeMapping(instance, stringTypeMapping) };
}
else
{
var startIndexSql = _sqlExpressionFactory.Add(startIndex, _sqlExpressionFactory.Constant(1));
charIndexArguments = new[] { searchExpression, _sqlExpressionFactory.ApplyTypeMapping(instance, stringTypeMapping), startIndexSql };
}

SqlExpression charIndexExpression;
var storeType = stringTypeMapping.StoreType;
if (string.Equals(storeType, "nvarchar(max)", StringComparison.OrdinalIgnoreCase)
|| string.Equals(storeType, "varchar(max)", StringComparison.OrdinalIgnoreCase))
{
charIndexExpression = _sqlExpressionFactory.Function(
"CHARINDEX",
charIndexArguments,
nullable: true,
argumentsPropagateNullability: new[] { true, true },
smitpatel marked this conversation as resolved.
Show resolved Hide resolved
typeof(long));

charIndexExpression = _sqlExpressionFactory.Convert(charIndexExpression, typeof(int));
}
else
{
charIndexExpression = _sqlExpressionFactory.Function(
"CHARINDEX",
charIndexArguments,
nullable: true,
argumentsPropagateNullability: new[] { true, true },
method.ReturnType);
}

charIndexExpression = _sqlExpressionFactory.Subtract(charIndexExpression, _sqlExpressionFactory.Constant(1));

return _sqlExpressionFactory.Case(
new[]
{
new CaseWhenClause(
smitpatel marked this conversation as resolved.
Show resolved Hide resolved
_sqlExpressionFactory.Equal(
searchExpression,
_sqlExpressionFactory.Constant(string.Empty, stringTypeMapping)),
_sqlExpressionFactory.Constant(0))
},
charIndexExpression);
}


// See https://docs.microsoft.com/en-us/sql/t-sql/language-elements/like-transact-sql
private bool IsLikeWildChar(char c)
=> c == '%' || c == '_' || c == '[';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,15 @@ public virtual Task Indexof_with_emptystring(bool async)
ss => ss.Set<Customer>().Where(c => c.CustomerID == "ALFKI").Select(c => c.ContactName.IndexOf(string.Empty)));
}

[ConditionalTheory]
[MemberData(nameof(IsAsyncData))]
public virtual Task Indexof_with_one_arg(bool async)
{
return AssertQueryScalar(
async,
ss => ss.Set<Customer>().Where(c => c.CustomerID == "ALFKI").Select(c => c.ContactName.IndexOf("a")));
}

[ConditionalTheory]
[MemberData(nameof(IsAsyncData))]
public virtual Task Indexof_with_starting_position(bool async)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1498,13 +1498,28 @@ FROM [Customers] AS [c]
WHERE [c].[CustomerID] = N'ALFKI'");
}

[ConditionalTheory(Skip = "issue #25396")]
public override async Task Indexof_with_one_arg(bool async)
{
await base.Indexof_with_one_arg(async);

AssertSql(
@"SELECT CASE
WHEN N'a' = N'' THEN 0
ELSE CAST(CHARINDEX(N'a', [c].[ContactName]) AS int) - 1
END
FROM [Customers] AS [c]
WHERE [c].[CustomerID] = N'ALFKI'");
}

public override async Task Indexof_with_starting_position(bool async)
{
await base.Indexof_with_starting_position(async);

AssertSql(
@"SELECT [c].[ContactName]
@"SELECT CASE
WHEN N'a' = N'' THEN 0
smitpatel marked this conversation as resolved.
Show resolved Hide resolved
ELSE CAST(CHARINDEX(N'a', [c].[ContactName], 3 + 1) AS int) - 1
END
FROM [Customers] AS [c]
WHERE [c].[CustomerID] = N'ALFKI'");
}
Expand Down