From 6ffc492771387ee673a4164558e5f6bb4beb5bca Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 8 Nov 2020 19:53:02 +1100 Subject: [PATCH] refs --- readme.md | 83 +- src/Directory.Build.props | 2 +- .../CoreTests.Added.verified.txt | 2 +- .../CoreTests.AllData.verified.txt | 28 +- .../CoreTests.Modified.verified.txt | 4 +- .../CoreTests.MultiDbContexts.verified.txt | 25 +- .../CoreTests.MultiRecording.verified.txt | 918 ++++++++++-------- .../CoreTests.NestedQueryable.verified.txt | 5 +- .../CoreTests.Recording.verified.txt | 16 +- .../CoreTests.SomePropsModified.verified.txt | 4 +- .../CoreTests.UpdateEntity.verified.txt | 4 +- .../CoreTests.WithNavigationProp.verified.txt | 8 +- src/Verify.EntityFramework.Tests/CoreTests.cs | 2 - .../Verify.EntityFramework.Tests.csproj | 2 +- .../Converters/QueryableConverter.cs | 7 +- .../Converters/TrackerConverter.cs | 6 +- .../Verify.EntityFramework.csproj | 2 +- .../ClassicTests.Added.verified.txt | 2 +- .../ClassicTests.Modified.verified.txt | 4 +- .../ClassicTests.UpdateEntity.verified.txt | 4 +- ...assicTests.WithNavigationProp.verified.txt | 8 +- .../ClassicTests.cs | 2 - ...Verify.EntityFrameworkClassic.Tests.csproj | 2 +- .../Converters/QueryableConverter.cs | 7 +- .../Converters/TrackerConverter.cs | 16 +- .../Verify.EntityFrameworkClassic.csproj | 2 +- 26 files changed, 646 insertions(+), 519 deletions(-) diff --git a/readme.md b/readme.md index a3ac6e0..ddb9647 100644 --- a/readme.md +++ b/readme.md @@ -50,7 +50,7 @@ Enable VerifyEntityFramewok once at assembly load time: ```cs VerifyEntityFramework.Enable(); ``` -snippet source | anchor +snippet source | anchor @@ -61,7 +61,7 @@ VerifyEntityFramework.Enable(); ```cs VerifyEntityFrameworkClassic.Enable(); ``` -snippet source | anchor +snippet source | anchor @@ -119,23 +119,25 @@ Will result in the following verified file: ```txt { - target: '5', + target: 5, sql: [ { - Type: 'ReaderExecutedAsync', - Text: "SELECT [c].[Id], [c].[Content] + Type: ReaderExecutedAsync, + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = N'Title'" +WHERE [c].[Content] = N'Title' }, { - Type: 'ReaderExecuted', - Text: 'SELECT COUNT(*) -FROM [Companies] AS [c]' + Type: ReaderExecuted, + Text: +SELECT COUNT(*) +FROM [Companies] AS [c] } ] } ``` -snippet source | anchor +snippet source | anchor @@ -173,34 +175,37 @@ await Verifier.Verify(data2.Companies.Count()); ```txt { - target: '5', + target: 5, sql: [ { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, HasTransaction: true, Parameters: { @p0: 0, - @p1: 'Title' + @p1: Title }, - Text: 'SET NOCOUNT ON; + Text: +SET NOCOUNT ON; INSERT INTO [Companies] ([Id], [Content]) -VALUES (@p0, @p1);' +VALUES (@p0, @p1); }, { - Type: 'ReaderExecutedAsync', - Text: "SELECT [c].[Id], [c].[Content] + Type: ReaderExecutedAsync, + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = N'Title'" +WHERE [c].[Content] = N'Title' }, { - Type: 'ReaderExecuted', - Text: 'SELECT COUNT(*) -FROM [Companies] AS [c]' + Type: ReaderExecuted, + Text: +SELECT COUNT(*) +FROM [Companies] AS [c] } ] } ``` -snippet source | anchor +snippet source | anchor @@ -242,7 +247,7 @@ Will result in the following verified file: Added: { Company: { Id: 0, - Content: 'before' + Content: before } } } @@ -329,8 +334,8 @@ Will result in the following verified file: Company: { Id: 0, Content: { - Original: 'before', - Current: 'after' + Original: before, + Current: after } } } @@ -410,44 +415,44 @@ Will result in the following verified file with all data in the database: ```txt [ { - $type: 'Company', + $type: Company, Id: 1, - Content: 'Company1' + Content: Company1 }, { - $type: 'Company', + $type: Company, Id: 4, - Content: 'Company2' + Content: Company2 }, { - $type: 'Company', + $type: Company, Id: 6, - Content: 'Company3' + Content: Company3 }, { - $type: 'Company', + $type: Company, Id: 7, - Content: 'Company4' + Content: Company4 }, { - $type: 'Employee', + $type: Employee, Id: 2, CompanyId: 1, - Content: 'Employee1', + Content: Employee1, Age: 25 }, { - $type: 'Employee', + $type: Employee, Id: 3, CompanyId: 1, - Content: 'Employee2', + Content: Employee2, Age: 31 }, { - $type: 'Employee', + $type: Employee, Id: 5, CompanyId: 4, - Content: 'Employee4', + Content: Employee4, Age: 34 } ] diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 5291ab0..5a21004 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -2,7 +2,7 @@ CS1591;CS0649;CS8632;EF1001 - 5.0.0-beta.6 + 5.0.0-beta.7 1.0.0 EntityFramework, Verify Extends Verify (https://github.com/VerifyTests/Verify) to allow verification of EntityFramework bits. diff --git a/src/Verify.EntityFramework.Tests/CoreTests.Added.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.Added.verified.txt index a6e0a45..c622fcf 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.Added.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.Added.verified.txt @@ -2,7 +2,7 @@ Added: { Company: { Id: 0, - Content: 'before' + Content: before } } } \ No newline at end of file diff --git a/src/Verify.EntityFramework.Tests/CoreTests.AllData.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.AllData.verified.txt index 5afd9f6..27abe07 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.AllData.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.AllData.verified.txt @@ -1,43 +1,43 @@ [ { - $type: 'Company', + $type: Company, Id: 1, - Content: 'Company1' + Content: Company1 }, { - $type: 'Company', + $type: Company, Id: 4, - Content: 'Company2' + Content: Company2 }, { - $type: 'Company', + $type: Company, Id: 6, - Content: 'Company3' + Content: Company3 }, { - $type: 'Company', + $type: Company, Id: 7, - Content: 'Company4' + Content: Company4 }, { - $type: 'Employee', + $type: Employee, Id: 2, CompanyId: 1, - Content: 'Employee1', + Content: Employee1, Age: 25 }, { - $type: 'Employee', + $type: Employee, Id: 3, CompanyId: 1, - Content: 'Employee2', + Content: Employee2, Age: 31 }, { - $type: 'Employee', + $type: Employee, Id: 5, CompanyId: 4, - Content: 'Employee4', + Content: Employee4, Age: 34 } ] \ No newline at end of file diff --git a/src/Verify.EntityFramework.Tests/CoreTests.Modified.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.Modified.verified.txt index 462192d..52a412c 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.Modified.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.Modified.verified.txt @@ -3,8 +3,8 @@ Company: { Id: 0, Content: { - Original: 'before', - Current: 'after' + Original: before, + Current: after } } } diff --git a/src/Verify.EntityFramework.Tests/CoreTests.MultiDbContexts.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.MultiDbContexts.verified.txt index c0129f2..a8060ca 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.MultiDbContexts.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.MultiDbContexts.verified.txt @@ -1,27 +1,30 @@ { - target: '5', + target: 5, sql: [ { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, HasTransaction: true, Parameters: { @p0: 0, - @p1: 'Title' + @p1: Title }, - Text: 'SET NOCOUNT ON; + Text: +SET NOCOUNT ON; INSERT INTO [Companies] ([Id], [Content]) -VALUES (@p0, @p1);' +VALUES (@p0, @p1); }, { - Type: 'ReaderExecutedAsync', - Text: "SELECT [c].[Id], [c].[Content] + Type: ReaderExecutedAsync, + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = N'Title'" +WHERE [c].[Content] = N'Title' }, { - Type: 'ReaderExecuted', - Text: 'SELECT COUNT(*) -FROM [Companies] AS [c]' + Type: ReaderExecuted, + Text: +SELECT COUNT(*) +FROM [Companies] AS [c] } ] } \ No newline at end of file diff --git a/src/Verify.EntityFramework.Tests/CoreTests.MultiRecording.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.MultiRecording.verified.txt index da148b6..b75fb65 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.MultiRecording.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.MultiRecording.verified.txt @@ -1,924 +1,1026 @@ [ { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, HasTransaction: true, Parameters: { @p0: 0, - @p1: 'Title' + @p1: Title }, - Text: 'SET NOCOUNT ON; + Text: +SET NOCOUNT ON; INSERT INTO [Companies] ([Id], [Content]) -VALUES (@p0, @p1);' +VALUES (@p0, @p1); }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '0' + @__s_0: 0 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '1' + @__s_0: 1 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '2' + @__s_0: 2 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '3' + @__s_0: 3 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '4' + @__s_0: 4 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '5' + @__s_0: 5 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '6' + @__s_0: 6 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '7' + @__s_0: 7 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '8' + @__s_0: 8 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '9' + @__s_0: 9 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '10' + @__s_0: 10 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '11' + @__s_0: 11 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '12' + @__s_0: 12 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '13' + @__s_0: 13 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '14' + @__s_0: 14 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '15' + @__s_0: 15 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '16' + @__s_0: 16 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '17' + @__s_0: 17 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '18' + @__s_0: 18 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '19' + @__s_0: 19 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '20' + @__s_0: 20 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '21' + @__s_0: 21 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '22' + @__s_0: 22 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '23' + @__s_0: 23 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '24' + @__s_0: 24 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '25' + @__s_0: 25 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '26' + @__s_0: 26 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '27' + @__s_0: 27 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '28' + @__s_0: 28 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '29' + @__s_0: 29 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '30' + @__s_0: 30 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '31' + @__s_0: 31 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '32' + @__s_0: 32 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '33' + @__s_0: 33 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '34' + @__s_0: 34 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '35' + @__s_0: 35 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '36' + @__s_0: 36 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '37' + @__s_0: 37 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '38' + @__s_0: 38 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '39' + @__s_0: 39 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '40' + @__s_0: 40 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '41' + @__s_0: 41 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '42' + @__s_0: 42 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '43' + @__s_0: 43 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '44' + @__s_0: 44 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '45' + @__s_0: 45 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '46' + @__s_0: 46 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '47' + @__s_0: 47 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '48' + @__s_0: 48 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '49' + @__s_0: 49 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '50' + @__s_0: 50 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '51' + @__s_0: 51 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '52' + @__s_0: 52 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '53' + @__s_0: 53 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '54' + @__s_0: 54 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '55' + @__s_0: 55 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '56' + @__s_0: 56 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '57' + @__s_0: 57 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '58' + @__s_0: 58 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '59' + @__s_0: 59 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '60' + @__s_0: 60 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '61' + @__s_0: 61 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '62' + @__s_0: 62 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '63' + @__s_0: 63 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '64' + @__s_0: 64 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '65' + @__s_0: 65 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '66' + @__s_0: 66 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '67' + @__s_0: 67 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '68' + @__s_0: 68 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '69' + @__s_0: 69 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '70' + @__s_0: 70 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '71' + @__s_0: 71 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '72' + @__s_0: 72 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '73' + @__s_0: 73 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '74' + @__s_0: 74 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '75' + @__s_0: 75 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '76' + @__s_0: 76 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '77' + @__s_0: 77 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '78' + @__s_0: 78 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '79' + @__s_0: 79 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '80' + @__s_0: 80 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '81' + @__s_0: 81 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '82' + @__s_0: 82 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '83' + @__s_0: 83 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '84' + @__s_0: 84 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '85' + @__s_0: 85 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '86' + @__s_0: 86 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '87' + @__s_0: 87 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '88' + @__s_0: 88 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '89' + @__s_0: 89 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '90' + @__s_0: 90 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '91' + @__s_0: 91 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '92' + @__s_0: 92 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '93' + @__s_0: 93 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '94' + @__s_0: 94 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '95' + @__s_0: 95 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '96' + @__s_0: 96 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '97' + @__s_0: 97 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '98' + @__s_0: 98 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, Parameters: { - @__s_0: '99' + @__s_0: 99 }, - Text: 'SELECT [c].[Id], [c].[Content] + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = @__s_0' +WHERE [c].[Content] = @__s_0 }, { - Type: 'ReaderExecutedAsync', + Type: ReaderExecutedAsync, HasTransaction: true, Parameters: { @p0: 2, - @p1: 'Title2' + @p1: Title2 }, - Text: 'SET NOCOUNT ON; + Text: +SET NOCOUNT ON; INSERT INTO [Companies] ([Id], [Content]) -VALUES (@p0, @p1);' +VALUES (@p0, @p1); } ] \ No newline at end of file diff --git a/src/Verify.EntityFramework.Tests/CoreTests.NestedQueryable.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.NestedQueryable.verified.txt index e8f07aa..e5c057b 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.NestedQueryable.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.NestedQueryable.verified.txt @@ -1,5 +1,6 @@ { - queryable: "SELECT [c].[Id], [c].[Content] + queryable: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = N'value'" +WHERE [c].[Content] = N'value' } \ No newline at end of file diff --git a/src/Verify.EntityFramework.Tests/CoreTests.Recording.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.Recording.verified.txt index e131d83..e560f08 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.Recording.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.Recording.verified.txt @@ -1,16 +1,18 @@ { - target: '5', + target: 5, sql: [ { - Type: 'ReaderExecutedAsync', - Text: "SELECT [c].[Id], [c].[Content] + Type: ReaderExecutedAsync, + Text: +SELECT [c].[Id], [c].[Content] FROM [Companies] AS [c] -WHERE [c].[Content] = N'Title'" +WHERE [c].[Content] = N'Title' }, { - Type: 'ReaderExecuted', - Text: 'SELECT COUNT(*) -FROM [Companies] AS [c]' + Type: ReaderExecuted, + Text: +SELECT COUNT(*) +FROM [Companies] AS [c] } ] } \ No newline at end of file diff --git a/src/Verify.EntityFramework.Tests/CoreTests.SomePropsModified.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.SomePropsModified.verified.txt index b03b051..b86c46d 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.SomePropsModified.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.SomePropsModified.verified.txt @@ -3,8 +3,8 @@ Employee: { Id: 0, Content: { - Original: 'before', - Current: 'after' + Original: before, + Current: after } } } diff --git a/src/Verify.EntityFramework.Tests/CoreTests.UpdateEntity.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.UpdateEntity.verified.txt index b03b051..b86c46d 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.UpdateEntity.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.UpdateEntity.verified.txt @@ -3,8 +3,8 @@ Employee: { Id: 0, Content: { - Original: 'before', - Current: 'after' + Original: before, + Current: after } } } diff --git a/src/Verify.EntityFramework.Tests/CoreTests.WithNavigationProp.verified.txt b/src/Verify.EntityFramework.Tests/CoreTests.WithNavigationProp.verified.txt index a33b2a6..cb7ed30 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.WithNavigationProp.verified.txt +++ b/src/Verify.EntityFramework.Tests/CoreTests.WithNavigationProp.verified.txt @@ -3,15 +3,15 @@ Company: { Id: 0, Content: { - Original: 'companyBefore', - Current: 'companyAfter' + Original: companyBefore, + Current: companyAfter } }, Employee: { Id: 0, Content: { - Original: 'employeeBefore', - Current: 'employeeAfter' + Original: employeeBefore, + Current: employeeAfter } } } diff --git a/src/Verify.EntityFramework.Tests/CoreTests.cs b/src/Verify.EntityFramework.Tests/CoreTests.cs index 30a9d59..9dd1a4d 100644 --- a/src/Verify.EntityFramework.Tests/CoreTests.cs +++ b/src/Verify.EntityFramework.Tests/CoreTests.cs @@ -286,8 +286,6 @@ public class CoreTests static CoreTests() { - VerifierSettings.DisableNewLineEscaping(); - #region EnableCore VerifyEntityFramework.Enable(); diff --git a/src/Verify.EntityFramework.Tests/Verify.EntityFramework.Tests.csproj b/src/Verify.EntityFramework.Tests/Verify.EntityFramework.Tests.csproj index e84b174..b82d377 100644 --- a/src/Verify.EntityFramework.Tests/Verify.EntityFramework.Tests.csproj +++ b/src/Verify.EntityFramework.Tests/Verify.EntityFramework.Tests.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/Verify.EntityFramework/Converters/QueryableConverter.cs b/src/Verify.EntityFramework/Converters/QueryableConverter.cs index 870ef76..a823609 100644 --- a/src/Verify.EntityFramework/Converters/QueryableConverter.cs +++ b/src/Verify.EntityFramework/Converters/QueryableConverter.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.EntityFrameworkCore.Query.Internal; @@ -8,7 +9,11 @@ using VerifyTests; class QueryableConverter : WriteOnlyJsonConverter { - public override void WriteJson(JsonWriter writer, object? data, JsonSerializer serializer) + public override void WriteJson( + JsonWriter writer, + object? data, + JsonSerializer serializer, + IReadOnlyDictionary context) { if (data == null) { diff --git a/src/Verify.EntityFramework/Converters/TrackerConverter.cs b/src/Verify.EntityFramework/Converters/TrackerConverter.cs index 88f4ab3..f3550ea 100644 --- a/src/Verify.EntityFramework/Converters/TrackerConverter.cs +++ b/src/Verify.EntityFramework/Converters/TrackerConverter.cs @@ -8,7 +8,11 @@ using VerifyTests; class TrackerConverter : WriteOnlyJsonConverter { - public override void WriteJson(JsonWriter writer, ChangeTracker? tracker, JsonSerializer serializer) + public override void WriteJson( + JsonWriter writer, + ChangeTracker? tracker, + JsonSerializer serializer, + IReadOnlyDictionary context) { if (tracker == null) { diff --git a/src/Verify.EntityFramework/Verify.EntityFramework.csproj b/src/Verify.EntityFramework/Verify.EntityFramework.csproj index 2a431a0..c055c4f 100644 --- a/src/Verify.EntityFramework/Verify.EntityFramework.csproj +++ b/src/Verify.EntityFramework/Verify.EntityFramework.csproj @@ -4,7 +4,7 @@ - + diff --git a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.Added.verified.txt b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.Added.verified.txt index a6e0a45..c622fcf 100644 --- a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.Added.verified.txt +++ b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.Added.verified.txt @@ -2,7 +2,7 @@ Added: { Company: { Id: 0, - Content: 'before' + Content: before } } } \ No newline at end of file diff --git a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.Modified.verified.txt b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.Modified.verified.txt index 462192d..52a412c 100644 --- a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.Modified.verified.txt +++ b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.Modified.verified.txt @@ -3,8 +3,8 @@ Company: { Id: 0, Content: { - Original: 'before', - Current: 'after' + Original: before, + Current: after } } } diff --git a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.UpdateEntity.verified.txt b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.UpdateEntity.verified.txt index 462192d..52a412c 100644 --- a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.UpdateEntity.verified.txt +++ b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.UpdateEntity.verified.txt @@ -3,8 +3,8 @@ Company: { Id: 0, Content: { - Original: 'before', - Current: 'after' + Original: before, + Current: after } } } diff --git a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.WithNavigationProp.verified.txt b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.WithNavigationProp.verified.txt index a33b2a6..cb7ed30 100644 --- a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.WithNavigationProp.verified.txt +++ b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.WithNavigationProp.verified.txt @@ -3,15 +3,15 @@ Company: { Id: 0, Content: { - Original: 'companyBefore', - Current: 'companyAfter' + Original: companyBefore, + Current: companyAfter } }, Employee: { Id: 0, Content: { - Original: 'employeeBefore', - Current: 'employeeAfter' + Original: employeeBefore, + Current: employeeAfter } } } diff --git a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.cs b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.cs index 62c3ad3..59f122c 100644 --- a/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.cs +++ b/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.cs @@ -134,8 +134,6 @@ public class ClassicTests static ClassicTests() { - VerifierSettings.DisableNewLineEscaping(); - #region EnableClassic VerifyEntityFrameworkClassic.Enable(); diff --git a/src/Verify.EntityFrameworkClassic.Tests/Verify.EntityFrameworkClassic.Tests.csproj b/src/Verify.EntityFrameworkClassic.Tests/Verify.EntityFrameworkClassic.Tests.csproj index 0cfc340..9c471ab 100644 --- a/src/Verify.EntityFrameworkClassic.Tests/Verify.EntityFrameworkClassic.Tests.csproj +++ b/src/Verify.EntityFrameworkClassic.Tests/Verify.EntityFrameworkClassic.Tests.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Verify.EntityFrameworkClassic/Converters/QueryableConverter.cs b/src/Verify.EntityFrameworkClassic/Converters/QueryableConverter.cs index 2871941..5075009 100644 --- a/src/Verify.EntityFrameworkClassic/Converters/QueryableConverter.cs +++ b/src/Verify.EntityFrameworkClassic/Converters/QueryableConverter.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Linq; using System.Reflection; using Newtonsoft.Json; @@ -7,7 +8,11 @@ using VerifyTests; class QueryableConverter : WriteOnlyJsonConverter { - public override void WriteJson(JsonWriter writer, object? data, JsonSerializer serializer) + public override void WriteJson( + JsonWriter writer, + object? data, + JsonSerializer serializer, + IReadOnlyDictionary context) { if (data == null) { diff --git a/src/Verify.EntityFrameworkClassic/Converters/TrackerConverter.cs b/src/Verify.EntityFrameworkClassic/Converters/TrackerConverter.cs index cb8566e..4108f86 100644 --- a/src/Verify.EntityFrameworkClassic/Converters/TrackerConverter.cs +++ b/src/Verify.EntityFrameworkClassic/Converters/TrackerConverter.cs @@ -15,8 +15,8 @@ class TrackerConverter : static TrackerConverter() { const BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic; - FieldInfo internalContextField = typeof(DbChangeTracker).GetField("_internalContext", flags)!; - FieldInfo ownerField = internalContextField.FieldType.GetField("_owner", flags)!; + var internalContextField = typeof(DbChangeTracker).GetField("_internalContext", flags)!; + var ownerField = internalContextField.FieldType.GetField("_owner", flags)!; func = tracker => { @@ -25,7 +25,11 @@ class TrackerConverter : }; } - public override void WriteJson(JsonWriter writer, DbChangeTracker? tracker, JsonSerializer serializer) + public override void WriteJson( + JsonWriter writer, + DbChangeTracker? tracker, + JsonSerializer serializer, + IReadOnlyDictionary context) { if (tracker == null) { @@ -35,9 +39,9 @@ class TrackerConverter : writer.WriteStartObject(); var entries = tracker.Entries().ToList(); HandleAdded(entries, writer, serializer); - var context = func(tracker); - HandleModified(entries, writer, serializer, context); - HandleDeleted(entries, writer, serializer, context); + var data = func(tracker); + HandleModified(entries, writer, serializer, data); + HandleDeleted(entries, writer, serializer, data); writer.WriteEndObject(); } diff --git a/src/Verify.EntityFrameworkClassic/Verify.EntityFrameworkClassic.csproj b/src/Verify.EntityFrameworkClassic/Verify.EntityFrameworkClassic.csproj index 1a39c2e..8ec47b3 100644 --- a/src/Verify.EntityFrameworkClassic/Verify.EntityFrameworkClassic.csproj +++ b/src/Verify.EntityFrameworkClassic/Verify.EntityFrameworkClassic.csproj @@ -4,7 +4,7 @@ - +