This commit is contained in:
Simon 2022-11-09 14:37:33 +11:00
Родитель 65ca04b7c0
Коммит 582b73ea44
9 изменённых файлов: 34 добавлений и 30 удалений

Просмотреть файл

@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591;CS0649;CS8632;EF1001</NoWarn>
<Version>7.0.0</Version>
<Version>8.0.0</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>EntityFramework, Verify</PackageTags>
<Description>Extends Verify (https://github.com/VerifyTests/Verify) to allow verification of EntityFramework bits.</Description>

Просмотреть файл

@ -3,12 +3,13 @@
sql: [
{
Type: ReaderExecutedAsync,
HasTransaction: true,
HasTransaction: false,
Parameters: {
@p0 (Int32): 0,
@p1 (String?): Title
},
Text:
SET IMPLICIT_TRANSACTIONS OFF;
SET NOCOUNT ON;
INSERT INTO [Companies] ([Id], [Content])
VALUES (@p0, @p1);

Просмотреть файл

@ -1,12 +1,13 @@
[
{
Type: ReaderExecutedAsync,
HasTransaction: true,
HasTransaction: false,
Parameters: {
@p0 (Int32): 0,
@p1 (String?): Title
},
Text:
SET IMPLICIT_TRANSACTIONS OFF;
SET NOCOUNT ON;
INSERT INTO [Companies] ([Id], [Content])
VALUES (@p0, @p1);
@ -1113,12 +1114,13 @@ WHERE [c].[Content] = @__s_0
},
{
Type: ReaderExecutedAsync,
HasTransaction: true,
HasTransaction: false,
Parameters: {
@p0 (Int32): 2,
@p1 (String?): Title2
},
Text:
SET IMPLICIT_TRANSACTIONS OFF;
SET NOCOUNT ON;
INSERT INTO [Companies] ([Id], [Content])
VALUES (@p0, @p1);

Просмотреть файл

@ -1,12 +1,13 @@
[
{
Type: ReaderExecutedAsync,
HasTransaction: true,
HasTransaction: false,
Parameters: {
@p0 (Int32): 0,
@p1 (String?): Guid_1
},
Text:
SET IMPLICIT_TRANSACTIONS OFF;
SET NOCOUNT ON;
INSERT INTO [Companies] ([Id], [Content])
VALUES (@p0, @p1);

Просмотреть файл

@ -6,12 +6,12 @@
{
Message: Violation of PRIMARY KEY constraint 'PK_TestEntities'. Cannot insert duplicate key in object 'dbo.TestEntities'. The duplicate key value is (Guid_1).,
Number: 2627,
Line: 2
Line: 3
},
{
Message: The statement has been terminated.,
Number: 3621,
Line: 2
Line: 3
}
]
},

Просмотреть файл

@ -1,23 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EfLocalDb" Version="13.9.4" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.10" />
<PackageReference Include="EfLocalDb" Version="14.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.0" />
<PackageReference Include="Argon" Version="0.1.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0-alpha-net7.4" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0" />
<PackageReference Include="Verify.DiffPlex" Version="2.0.0" />
<PackageReference Include="MarkdownSnippets.MsBuild" Version="24.5.0" PrivateAssets="all" />
<PackageReference Include="Verify.NUnit" Version="18.0.0" />
<PackageReference Include="Verify.SqlServer" Version="4.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.10" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="ProjectDefaults" Version="1.0.80" PrivateAssets="all" />
<PackageReference Include="Verify.NUnit" Version="19.0.0" />
<PackageReference Include="Verify.SqlServer" Version="4.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="ProjectDefaults" Version="1.0.82" PrivateAssets="all" />
<ProjectReference Include="..\Verify.EntityFramework\Verify.EntityFramework.csproj" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.0" />
</ItemGroup>
</Project>

Просмотреть файл

@ -3,12 +3,12 @@
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.0" />
<PackageReference Include="Argon" Version="0.1.0" />
<PackageReference Include="Verify" Version="18.0.0" />
<PackageReference Include="Verify" Version="19.0.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
<PackageReference Include="ProjectDefaults" Version="1.0.80" PrivateAssets="all" />
<PackageReference Include="ProjectDefaults" Version="1.0.82" PrivateAssets="all" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Argon" Version="0.1.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0-alpha-net7.4" />
<PackageReference Include="Verify.NUnit" Version="18.0.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0" />
<PackageReference Include="Verify.NUnit" Version="19.0.0" />
<PackageReference Include="Verify.DiffPlex" Version="2.0.0" />
<PackageReference Include="EfClassicLocalDb" Version="13.9.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="ProjectDefaults" Version="1.0.80" PrivateAssets="all" />
<PackageReference Include="EfClassicLocalDb" Version="14.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="ProjectDefaults" Version="1.0.82" PrivateAssets="all" />
<ProjectReference Include="..\Verify.EntityFrameworkClassic\Verify.EntityFrameworkClassic.csproj" />
</ItemGroup>
</Project>

Просмотреть файл

@ -5,9 +5,9 @@
<ItemGroup>
<Using Remove="System.Net.Http" />
<PackageReference Include="EntityFramework" Version="6.4.4" />
<PackageReference Include="Verify" Version="18.0.0" />
<PackageReference Include="Verify" Version="19.0.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
<PackageReference Include="ProjectDefaults" Version="1.0.80" PrivateAssets="all" />
<PackageReference Include="ProjectDefaults" Version="1.0.82" PrivateAssets="all" />
</ItemGroup>
</Project>