-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query: Add condition when accessing property on optional dependent wh…
- Loading branch information
Showing
21 changed files
with
397 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
...ecification.Tests/Query/ComplexNavigationsCollectionsSharedQueryTypeRelationalTestBase.cs
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...ecification.Tests/Query/ComplexNavigationsCollectionsSharedTypeQueryRelationalTestBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Threading.Tasks; | ||
using Microsoft.EntityFrameworkCore.Diagnostics; | ||
using Xunit; | ||
|
||
namespace Microsoft.EntityFrameworkCore.Query | ||
{ | ||
public abstract class ComplexNavigationsCollectionsSharedTypeQueryRelationalTestBase<TFixture> : ComplexNavigationsCollectionsSharedTypeQueryTestBase<TFixture> | ||
where TFixture : ComplexNavigationsSharedTypeQueryRelationalFixtureBase, new() | ||
{ | ||
protected ComplexNavigationsCollectionsSharedTypeQueryRelationalTestBase(TFixture fixture) | ||
: base(fixture) | ||
{ | ||
} | ||
|
||
public override async Task SelectMany_with_navigation_and_Distinct_projecting_columns_including_join_key(bool async) | ||
{ | ||
Assert.Equal( | ||
RelationalStrings.InsufficientInformationToIdentifyOuterElementOfCollectionJoin, | ||
(await Assert.ThrowsAsync<InvalidOperationException>( | ||
() => base.SelectMany_with_navigation_and_Distinct_projecting_columns_including_join_key(async))).Message); | ||
} | ||
} | ||
} |
14 changes: 12 additions & 2 deletions
14
...SplitSharedQueryTypeRelationalTestBase.cs → ...SplitSharedTypeQueryRelationalTestBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.