Граф коммитов

15736 Коммитов

Автор SHA1 Сообщение Дата
Arthur Vickers fb48980107 IC 2024-08-29 14:38:26 +01:00
Arthur Vickers 5674f77992 Merge branch 'release/9.0' 2024-08-29 13:17:28 +01:00
Arthur Vickers c510e634b8
(RC2) Downgrade to LTS SqlClient (#34540)
* Update to LTS SqlClient

* Bump
2024-08-29 13:15:24 +01:00
Shay Rojansky d01876bb37
Properly implement support for Cosmos hierarchical partition keys (#34557) (#34560)
Fixes #34553

(cherry picked from commit a72420cc91)
2024-08-29 11:54:06 +03:00
Shay Rojansky a72420cc91
Properly implement support for Cosmos hierarchical partition keys (#34557)
Fixes #34553
2024-08-28 22:03:17 +00:00
Andriy Svyryd b59aa3a99d
[release/9.0] Add explicit casts for generated null in method calls. (#34523)
* Add explicit casts for generated null in method calls.

Fixes #34515

* Update src/EFCore.Design/Query/Internal/LinqToCSharpSyntaxTranslator.cs

Co-authored-by: Shay Rojansky <roji@roji.org>

---------

Co-authored-by: Shay Rojansky <roji@roji.org>
2024-08-27 18:46:50 +00:00
Andriy Svyryd ab8e014052
[release/9.0] Make nested generic type generation consistent (#34537)
Fixes #33710
2024-08-27 10:39:20 -07:00
koenigst 017fb22e4b
Added a test project for F# functional tests. (#34541)
- Added the project EFCore.FSharp.FunctionalTests
- Created a fixture for the Northwind database
- Implemented a sample test analogous to the Visual Basic tests

Fixes #14572
2024-08-27 19:49:02 +03:00
Arthur Vickers 56716b08d9 Merge branch 'release/9.0' 2024-08-27 10:15:57 +01:00
Arthur Vickers f63769af8c
(RC2) (Test only) Fix async void tests (#34529) 2024-08-27 10:14:23 +01:00
dotnet-maestro[bot] 12712fe8eb
Update dependencies from https://github.com/dotnet/runtime build 20240823.10 (#34534)
[release/9.0] Update dependencies from dotnet/runtime
2024-08-26 14:30:45 +00:00
dotnet-maestro[bot] 79f1e86e18
Update dependencies from https://github.com/dotnet/arcade build 20240823.2 (#34533)
[release/9.0] Update dependencies from dotnet/arcade
2024-08-26 14:30:00 +00:00
dotnet-maestro[bot] 621fa444d0
Update dependencies from https://github.com/dotnet/arcade build 20240823.2 (#34531)
[main] Update dependencies from dotnet/arcade
2024-08-26 13:18:54 +00:00
Arthur Vickers 220a770b59 Merge branch 'release/9.0' 2024-08-26 12:18:40 +01:00
mianculovici d403645c40
Make Discriminator_values_are_not_marked_as_unknown virtual (#34517) (#34520) 2024-08-26 10:09:38 +01:00
Shay Rojansky 3d7a13a0ac
Rename some locals (#34514) 2024-08-22 16:28:48 +00:00
Jiri Cincura ↹ b9e253b129
(RC2) Fix ESCAPE clause for Azure Synapse. (#34463) (#34510)
* Fix ESCAPE clause for Azure Synapse. (#34463)

* Use different store names for funky data tests (#34506)
2024-08-22 16:09:11 +02:00
Jiri Cincura ↹ 7757168bc2
(RC2) Fix ESCAPE clause for Azure Synapse. (#34463) (#34509)
* Fix ESCAPE clause for Azure Synapse. (#34463)

* Use different store names for funky data tests (#34506)
2024-08-22 14:44:43 +02:00
Jiri Cincura ↹ a51eeb1d45
Use different store names for funky data tests (#34506) 2024-08-22 09:55:31 +00:00
Arthur Vickers 2680911e0f Merge branch 'release/9.0' 2024-08-22 08:33:12 +01:00
Arthur Vickers 38754d824b
(RC2) Cosmos: strip implicit casts to allow vector search over arrays (#34495)
Fixes #34402

Co-authored-by: Shay Rojansky <roji@roji.org>
2024-08-22 08:32:04 +01:00
Jiri Cincura ↹ ca3abeea8a
Fix ESCAPE clause for Azure Synapse. (#34463) 2024-08-21 20:53:05 +00:00
dotnet-maestro[bot] b6e84e0ffb
Update dependencies from https://github.com/dotnet/arcade build 20240821.2 (#34499)
[release/9.0] Update dependencies from dotnet/arcade
2024-08-21 20:14:03 +00:00
dotnet-maestro[bot] 80a01cd91a
Update dependencies from https://github.com/dotnet/arcade build 20240821.2 (#34498)
[main] Update dependencies from dotnet/arcade
2024-08-21 19:27:50 +00:00
Arthur Vickers 78400fcec9 Merge branch 'release/9.0' 2024-08-21 18:33:18 +01:00
Arthur Vickers b8e4bcb3ba
(RC2) (Test only) Code cleanup (Tests) (#34490)
* Code cleanup (Tests)

* Test refactoring

* Review updates
2024-08-21 18:29:19 +01:00
Shay Rojansky 197960758e
Cosmos: strip implicit casts to allow vector search over arrays (#34437)
Fixes #34402

Co-authored-by: Arthur Vickers <ajcvickers@hotmail.com>
2024-08-21 16:49:18 +00:00
Arthur Vickers a70f409047 Merge branch 'release/9.0' 2024-08-21 12:03:30 +01:00
Arthur Vickers fc1ebc583e
(RC2) Persist `Id` values into owned collection JSON documents (#34478)
* Persist `Id` values into owned collection JSON documents

Fixes #29380

There are several aspects to #29380:
- Constructor binding (already fixed)
- Round-tripping the `Id` property value (addressed by this PR)
- Persisting key values in JSON collection documents (tracked by #28594)

I investigated persisting key values, but identity lookup requires key values in the materializer before we do the parsing of the document. This means persisted key values are not available without re-writing this part of the shaper, which we can't do for 9.

To fix the main issue (round-trip `Id`) this PR changes the way identity on owned JSON collection documents works. Instead of discovering and using the `Id` property, we treat it like any other property. We then create a shadow `__synthesizedOrdinal` property to act as the ordinal part of the key.

We need to discuss:
- Is this breaking for any scenario that was working before?
- Does this put us in a bad place for the future of owned types with explicit keys?

* Added validation of no explicit keys
2024-08-21 12:02:14 +01:00
Arthur Vickers c9a93f0dc4 Merge branch 'release/9.0' 2024-08-21 09:04:10 +01:00
Arthur Vickers 89fe3675cd
Code cleanup (4) (#34474)
* Code cleanup (4)

* Tweaks
2024-08-21 08:56:12 +01:00
Andriy Svyryd 39ba5e56ba
Update Microsoft.Build.Locator (#34486) 2024-08-21 00:25:26 +00:00
Andriy Svyryd 74a35fa7c5
Enable PoliCheck (#34484) 2024-08-21 02:06:33 +03:00
Arthur Vickers 24668ffbce
Persist `Id` values into owned collection JSON documents (#34466)
* Persist `Id` values into owned collection JSON documents

Fixes #29380

There are several aspects to #29380:
- Constructor binding (already fixed)
- Round-tripping the `Id` property value (addressed by this PR)
- Persisting key values in JSON collection documents (tracked by #28594)

I investigated persisting key values, but identity lookup requires key values in the materializer before we do the parsing of the document. This means persisted key values are not available without re-writing this part of the shaper, which we can't do for 9.

To fix the main issue (round-trip `Id`) this PR changes the way identity on owned JSON collection documents works. Instead of discovering and using the `Id` property, we treat it like any other property. We then create a shadow `__synthesizedOrdinal` property to act as the ordinal part of the key.

We need to discuss:
- Is this breaking for any scenario that was working before?
- Does this put us in a bad place for the future of owned types with explicit keys?

* Added validation of no explicit keys
2024-08-20 14:45:46 +01:00
Arthur Vickers 0e2cb903ff Merge branch 'release/9.0' 2024-08-20 12:16:04 +01:00
Andriy Svyryd d18b30f63d
Update SDK to 9.0.100-preview.7.24407.12 (#34472) 2024-08-20 09:37:46 +03:00
Andriy Svyryd 59e7559a7d
Add NRT annotations required for the new Newtonsoft.Json version (#34470) 2024-08-19 16:11:40 -07:00
dotnet-maestro[bot] e885ea8624
Update dependencies from https://github.com/dotnet/runtime build 20240819.2 (#34465)
[release/9.0] Update dependencies from dotnet/runtime
2024-08-19 20:41:32 +00:00
Andriy Svyryd 2a6e5ae07e
Fix non-NativeAOT compiled model (#34455) 2024-08-19 13:09:28 -07:00
dotnet-maestro[bot] 56404d7152
Update dependencies from https://github.com/dotnet/arcade build 20240816.2 (#34464)
[main] Update dependencies from dotnet/arcade
2024-08-19 13:38:46 +00:00
Andriy Svyryd b463be27f8
Merge branch 'release/9.0-rc1' => 'release/9.0' 2024-08-18 03:57:56 -07:00
Andriy Svyryd 1e8167e71d
Fix github-merge-flow (#34452) 2024-08-16 23:39:38 -04:00
Andriy Svyryd b02958baef
Update branding to 10.0.0-alpha1 (#34438)
* Update branding to 10.0.0-alpha1

* Update inter branch automatic PRs

* Fix MigrationsInfrastructureSqlServerTest
2024-08-16 09:20:23 -07:00
Andriy Svyryd e914e923d8
[release/9.0-rc1] Fix OptimisticConcurrencyCosmosTest (#34443) 2024-08-15 10:10:23 -07:00
Andriy Svyryd e88fa4a92c Update branding to 9.0.0-rc2 2024-08-14 13:10:06 -07:00
Andriy Svyryd 684a4f1156
Add missing Model Builder API (#34427)
Add IConventionEntityTypeBuilder API for UseSqlReturningClause and UseSqlOutputClause

Fixes #33739
Fixes #33287
2024-08-14 19:32:03 +00:00
Andriy Svyryd e468fb7006
Don't generate code for precached values in the compiled model by default (#34412)
Add --nativeaot CLI option to output the eager code
2024-08-14 11:42:42 -07:00
Arthur Vickers 37599d2c72
Experimental support for the Azure SQL JSON type (#34401)
* Experimental support for the Azure SQL json type

Fixes #28452
Fixes #32150

Remaining work:

- Test reverse engineering from an existing database
- Output a warning when the native JSON type is used
- Replace the ToJson overload with HasColumnType()
- Move the type mapping visitation to another visitor

Known issues:

- Various issues communicated with the SQL team--see TODO:SQLJSON
- Testing is disabled until we have an appropriate server and driver to test against

* Revert changes needed for testing.

* Fix SQLite tests

* EF code updates

* More review updates.

* More updates,

* Disable Cosmos tests on C.I.
2024-08-14 15:38:01 +01:00
Simon Cropp 4305f7ffca
Remove SqlServerQueryTranslationPostprocessorFactory _typeMappingSource (#34429) 2024-08-14 09:58:21 +03:00
Andriy Svyryd 8e9525fa20
Remove migration lock timeout (#34338)
Log migration lock acquisition
Move seeding to options

Fixes #34196
Fixes #17578
2024-08-13 19:17:10 -07:00