Skip to content

Commit 117e2df

Browse files
Give MappingQueryFbFixture its own test store.
MappingQueryFixtureBase uses the "Northwind" store name with a reduced model. FbTestStore creates a shared store from the model of the first fixture that uses it, so whenever MappingQueryFbTest happened to run before the Northwind tests, EFCore_Northwind.fdb was created without e.g. Products and Customers.City and every Northwind test failed with "Column unknown"/"Table unknown". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fef2e3a commit 117e2df

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests/Query/MappingQueryFbTest.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ public class MappingQueryFbFixture : MappingQueryFixtureBase
5757
{
5858
protected override ITestStoreFactory TestStoreFactory => FbTestStoreFactory.Instance;
5959

60+
// The base fixture shares the "Northwind" store, but FbTestStore creates a shared store from the model of
61+
// whichever fixture uses it first. When this reduced model came first, all Northwind tests ran against its schema.
62+
protected override string StoreName => "MappingQuery";
63+
6064
protected override string DatabaseSchema { get; } = null;
6165

6266
protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext context)

0 commit comments

Comments
 (0)