Skip to content

Commit 92c1965

Browse files
committed
Postgress updates
1 parent 82843c7 commit 92c1965

File tree

5 files changed

+8
-22
lines changed

5 files changed

+8
-22
lines changed

Generator.Tests.Integration/Generator.Tests.Integration.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@
113113
<Compile Include="SingleDatabaseTestPostgreSql.cs" />
114114
<Compile Include="SingleDatabaseTestSqlCeServer.cs" />
115115
<Compile Include="SingleDatabaseTestSqlServer.cs" />
116-
<Compile Include="TestComparison\EfrpgTest_PostgreSQL_Ef6_FkLegacy.cs">
116+
<None Include="TestComparison\EfrpgTest_PostgreSQL_Ef6_FkLegacy.cs">
117117
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
118-
</Compile>
119-
<None Include="TestComparison\EfrpgTest_PostgreSQL_EfCore6_FkLegacy.cs">
118+
</None>
119+
<None Include="TestComparison\EfrpgTest_PostgreSQL_EfCore7_FkLegacy.cs">
120120
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
121121
</None>
122122
<None Include="TestComparison\NonPascalCased_SqlServer_EfCore6_FkLegacy.cs">
@@ -172,10 +172,10 @@
172172
<None Include="TestComparison\Northwind_SqlCe_Ef6_FkLatest.cs">
173173
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
174174
</None>
175-
<None Include="TestComparison\Northwind_PostgreSQL_EfCore6_FkLegacy.cs">
175+
<None Include="TestComparison\Northwind_PostgreSQL_EfCore7_FkLegacy.cs">
176176
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
177177
</None>
178-
<None Include="TestComparison\Northwind_PostgreSQL_EfCore6_FkLatest.cs">
178+
<None Include="TestComparison\Northwind_PostgreSQL_EfCore7_FkLatest.cs">
179179
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
180180
</None>
181181
<None Include="TestComparison\EfrpgTestIncludeFilter_SqlServer_EfCore6_FkLegacy.cs">

Generator.Tests.Integration/SingleDatabaseTestPostgreSql.cs

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
using System.Data.Common;
2-
using System.Linq;
3-
using Efrpg;
1+
using Efrpg;
42
using Efrpg.FileManagement;
5-
using Efrpg.PostgreSQL;
63
using Efrpg.Templates;
74
using Generator.Tests.Common;
85
using NUnit.Framework;
6+
using System.Data.Common;
97

108
namespace Generator.Tests.Integration
119
{
@@ -57,7 +55,7 @@ public void ReverseEngineerPostgreSQL_EfCore(ForeignKeyNamingStrategy foreignKey
5755
// Arrange
5856
Settings.GenerateSeparateFiles = false;
5957
Settings.UseMappingTables = false;
60-
SetupPostgreSQL(database, "MyDbContext", "MyDbContext", TemplateType.EfCore6, GeneratorType.EfCore, foreignKeyNamingStrategy);
58+
SetupPostgreSQL(database, "MyDbContext", "MyDbContext", TemplateType.EfCore7, GeneratorType.EfCore, foreignKeyNamingStrategy);
6159

6260
// Act
6361
Run(filename, ".PostgreSQL", typeof(EfCoreFileManager), null);
@@ -80,17 +78,5 @@ public void ReverseEngineerPostgreSQL_Ef6()
8078
// Assert
8179
CompareAgainstTestComparison("EfrpgTest");
8280
}
83-
84-
[Test]
85-
public void Read_EfrpgTest_AllColumnTypes()
86-
{
87-
using (var db = new MyEf6DbContext("Server=127.0.0.1;Port=5432;Database=EfrpgTest;User Id=testuser;Password=testtesttest;"))
88-
{
89-
var rows = db.Allcolumntypes.ToList();
90-
Assert.IsNotNull(rows);
91-
Assert.IsNotEmpty(rows);
92-
Assert.AreEqual(1234, rows.First().Bigint);
93-
}
94-
}
9581
}
9682
}

Generator.Tests.Integration/TestComparison/EfrpgTest_PostgreSQL_EfCore6_FkLegacy.cs renamed to Generator.Tests.Integration/TestComparison/EfrpgTest_PostgreSQL_EfCore7_FkLegacy.cs

File renamed without changes.

Generator.Tests.Integration/TestComparison/Northwind_PostgreSQL_EfCore6_FkLatest.cs renamed to Generator.Tests.Integration/TestComparison/Northwind_PostgreSQL_EfCore7_FkLatest.cs

File renamed without changes.

Generator.Tests.Integration/TestComparison/Northwind_PostgreSQL_EfCore6_FkLegacy.cs renamed to Generator.Tests.Integration/TestComparison/Northwind_PostgreSQL_EfCore7_FkLegacy.cs

File renamed without changes.

0 commit comments

Comments
 (0)