-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query: Add TPT variation for ManyToMany tests
This also cover some split queries Part of #21510
- Loading branch information
Showing
11 changed files
with
3,394 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...re.Relational.Specification.Tests/Query/TPTManyToManyNoTrackingQueryRelationalTestBase.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,14 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
namespace Microsoft.EntityFrameworkCore.Query | ||
{ | ||
public abstract class TPTManyToManyNoTrackingQueryRelationalTestBase<TFixture> : ManyToManyNoTrackingQueryRelationalTestBase<TFixture> | ||
where TFixture : TPTManyToManyQueryRelationalFixture, new() | ||
{ | ||
protected TPTManyToManyNoTrackingQueryRelationalTestBase(TFixture fixture) | ||
: base(fixture) | ||
{ | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/EFCore.Relational.Specification.Tests/Query/TPTManyToManyQueryRelationalFixture.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,21 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using Microsoft.EntityFrameworkCore.TestModels.ManyToManyModel; | ||
|
||
namespace Microsoft.EntityFrameworkCore.Query | ||
{ | ||
public abstract class TPTManyToManyQueryRelationalFixture : ManyToManyQueryRelationalFixture | ||
{ | ||
protected override string StoreName { get; } = "TPTManyToManyQueryTest"; | ||
|
||
protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext context) | ||
{ | ||
base.OnModelCreating(modelBuilder, context); | ||
|
||
modelBuilder.Entity<EntityRoot>().ToTable("Roots"); | ||
modelBuilder.Entity<EntityBranch>().ToTable("Branches"); | ||
modelBuilder.Entity<EntityLeaf>().ToTable("Leaves"); | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
test/EFCore.Relational.Specification.Tests/Query/TPTManyToManyQueryRelationalTestBase.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,14 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
namespace Microsoft.EntityFrameworkCore.Query | ||
{ | ||
public abstract class TPTManyToManyQueryRelationalTestBase<TFixture> : ManyToManyQueryRelationalTestBase<TFixture> | ||
where TFixture : TPTManyToManyQueryRelationalFixture, new() | ||
{ | ||
protected TPTManyToManyQueryRelationalTestBase(TFixture fixture) | ||
: base(fixture) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.