Commit 5256f2ea authored by Nick Craver's avatar Nick Craver

Benchmarks: Linq2DB tidy

parent 9313e9f1
......@@ -8,12 +8,12 @@
namespace Dapper.Tests.Performance
{
public class Liq2DbBenchmarks : BenchmarkBase
public class Linq2DBBenchmarks : BenchmarkBase
{
private Linq2DBContext _dbContext;
private static Func<Linq2DBContext, int, Post> compiledQuery = CompiledQuery.Compile((Linq2DBContext db, int id) =>
db.Posts.First(c => c.Id == id));
private static readonly Func<Linq2DBContext, int, Post> compiledQuery = CompiledQuery.Compile((Linq2DBContext db, int id) => db.Posts.First(c => c.Id == id));
[GlobalSetup]
public void Setup()
{
......
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