Unverified Commit 0e04fe1d authored by AlexBagnolini's avatar AlexBagnolini Committed by GitHub

Added EF6 performance tests back in netcoreapp3.0 (#1361)

* Added EF6 tests in netcoreapp3.0

* Fix up EF Core ref to always be 6.3.0
Co-authored-by: 's avatarAlex Bagnolini <alex.bagnolini@ericsoft.com>
Co-authored-by: 's avatarNick Craver <craver@stackoverflow.com>
parent c6952825
#if NET4X
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;
using System.ComponentModel;
using System.Linq;
......@@ -39,4 +38,3 @@ public Post NoTracking()
}
}
}
#endif
......@@ -15,6 +15,7 @@
<PackageReference Include="BenchmarkDotNet" Version="0.11.5" />
<PackageReference Include="DevExpress.Xpo" Version="19.1.5" />
<!--<PackageReference Include="BLToolkit" Version="4.3.6" />-->
<PackageReference Include="EntityFramework" Version="6.3.0" />
<PackageReference Include="FirebirdSql.Data.FirebirdClient" Version="7.0.0" />
<PackageReference Include="linq2db.SqlServer" Version="2.9.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.2.6" />
......@@ -37,7 +38,6 @@
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<ProjectReference Include="..\Dapper.EntityFramework\Dapper.EntityFramework.csproj" />
<PackageReference Include="EntityFramework" Version="6.2.0" />
<PackageReference Include="Microsoft.SqlServer.Types" Version="14.0.1016.290" />
<PackageReference Include="Soma" Version="1.9.0.1" />
<PackageReference Include="SubSonic" Version="3.0.0.4" />
......
#if NET4X
using System.Data.Common;
using System.Data.Common;
using System.Data.Entity;
namespace Dapper.Tests.Performance.EntityFramework
......@@ -13,4 +12,3 @@ public EFContext(DbConnection connection, bool owned = false) : base(connection,
public DbSet<Post> Posts { get; set; }
}
}
#endif
......@@ -8,6 +8,7 @@
using Belgrade.SqlClient;
using Dapper.Contrib.Extensions;
using Dapper.Tests.Performance.Dashing;
using Dapper.Tests.Performance.EntityFramework;
using Dapper.Tests.Performance.EntityFrameworkCore;
using Dapper.Tests.Performance.NHibernate;
using Dashing;
......@@ -22,7 +23,6 @@
using System.Threading.Tasks;
#if NET4X
using System.Data.Linq;
using Dapper.Tests.Performance.EntityFramework;
using Dapper.Tests.Performance.Linq2Sql;
using Dapper.Tests.Performance.Xpo;
using NHibernate.Linq;
......@@ -343,7 +343,6 @@ public async Task RunAsync(int iterations)
}, "DevExpress.XPO: FindObject<T>");
}, "DevExpress.XPO");
#if NET4X
// Entity Framework
Try(() =>
{
......@@ -357,6 +356,7 @@ public async Task RunAsync(int iterations)
tests.Add(id => entityContext3.Posts.AsNoTracking().First(p => p.Id == id), "Entity Framework: No Tracking");
}, "Entity Framework");
#if NET4X
// Linq2SQL
Try(() =>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment