Skip to content

Commit 35e1573

Browse files
committed
Release 2.0.0
1 parent 2f61a4a commit 35e1573

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

ReleaseNotes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
## 2.0.0
77

88
- BREAKING CHANGE: By default EfSchemaCompare to only scan the tables that the entity classes map to - see issue #18.
9-
- BREAKING CHANGE: In EfSchemaCompare missing indexes are now referred to by "index constraint name" instead of "constraint name" - this was done as part of case insensitivity
109
- Improvement: EfSchemaCompare now has case insensitive table, schema, columns, etc. matching feature - see issues #9 and #19.
10+
- BREAKING CHANGE: In EfSchemaCompare missing indexes are now referred to by "index constraint name" instead of "constraint name" - this was done as part of case insensitivity
11+
- Bug fix: EfSchemaCompare default SQL value handled improved, plus now sets the correct ValueGenerated - see issue #15
1112
- Bug fix: Fixed problem with serializing/deserializing DDD-styled entity classes.
12-
- Bug fix: Default SQL value handled improved, plus now sets the correct ValueGenerated - see issue #15
1313

1414
## 1.9.0
1515

TestSupport/TestSupport.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,19 @@
2424
<PropertyGroup>
2525
<TargetFramework>netstandard2.0</TargetFramework>
2626
<PackageId>EfCore.TestSupport</PackageId>
27-
<PackageVersion>2.0.0-preview001</PackageVersion>
27+
<PackageVersion>2.0.0</PackageVersion>
2828
<Version>2.0.0</Version>
2929
<AssemblyVersion>2.0.0.0</AssemblyVersion>
3030
<FileVersion>2.0.0.0</FileVersion>
3131
<Authors>Jon P Smith</Authors>
3232
<Description>Useful tools when unit testing applications that use Entity Framework Core. See readme file on github.</Description>
3333
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
3434
<PackageReleaseNotes>
35-
- Feature: Added seed test data from production database - see "Seed from Production feature" in Wiki docs.
35+
- BREAKING CHANGE: By default EfSchemaCompare to only scan the tables that the entity classes map to - see issue #18.
36+
- Improvement: EfSchemaCompare now has case insensitive table, schema, columns, etc. matching feature - see issues #9 and #19.
37+
- BREAKING CHANGE: In EfSchemaCompare missing indexes are now referred to by "index constraint name" instead of "constraint name" - this was done as part of case insensitivity
38+
- Bug fix: EfSchemaCompare default SQL value handled improved, plus now sets the correct ValueGenerated - see issue #15
39+
- Bug fix: Fixed problem with serializing/deserializing DDD-styled entity classes.
3640
</PackageReleaseNotes>
3741
<Copyright>Copyright (c) 2017 Jon P Smith. Licenced under MIT licence</Copyright>
3842
<PackageTags>Entity Framework Core, xUnit</PackageTags>

testsupport/efschemecompare/internal/comparelogger.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ public CompareLog MarkAsOk(string expected, string name = null)
3232
return log;
3333
}
3434

35-
public bool CheckDifferent(string expected, string found, CompareAttributes attribute, string name = null)
35+
public bool CheckDifferent(string expected, string found, CompareAttributes attribute,
36+
StringComparison caseComparison, string name = null)
3637
{
37-
if (expected != found && expected?.Replace(" ", "") != found?.Replace(" ", ""))
38+
if (!string.Equals(expected, found, caseComparison) &&
39+
!string.Equals( expected?.Replace(" ", ""), found?.Replace(" ", ""), caseComparison))
3840
{
3941
return AddToLogsIfNotIgnored(new CompareLog(_type, CompareState.Different, name ?? _defaultName, attribute, expected, found));
4042
}

0 commit comments

Comments
 (0)