From d63c46bfa5b14315b9d010ab5111eb8a97aebf70 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Thu, 18 Oct 2018 12:22:57 +0100 Subject: [PATCH] Fix tests for 2.2.0-preview3 React to https://github.com/aspnet/EntityFrameworkCore/issues/11738 --- test/EFCore.PG.FunctionalTests/F1NpgsqlFixture.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/EFCore.PG.FunctionalTests/F1NpgsqlFixture.cs b/test/EFCore.PG.FunctionalTests/F1NpgsqlFixture.cs index 6f45f51e6..5bf54b8fb 100644 --- a/test/EFCore.PG.FunctionalTests/F1NpgsqlFixture.cs +++ b/test/EFCore.PG.FunctionalTests/F1NpgsqlFixture.cs @@ -1,6 +1,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.TestModels.ConcurrencyModel; using Microsoft.EntityFrameworkCore.TestUtilities; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions; using Npgsql.EntityFrameworkCore.PostgreSQL.TestUtilities; namespace Npgsql.EntityFrameworkCore.PostgreSQL @@ -9,6 +10,9 @@ public class F1NpgsqlFixture : F1RelationalFixture { protected override ITestStoreFactory TestStoreFactory => NpgsqlTestStoreFactory.Instance; + public override ModelBuilder CreateModelBuilder() + => new ModelBuilder(NpgsqlConventionSetBuilder.Build()); + protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext context) { base.OnModelCreating(modelBuilder, context);