Update to npoco5

This commit is contained in:
Paul Johnson
2022-01-18 15:23:53 +00:00
parent c6d7f3b5d1
commit 2ead758a99
30 changed files with 84 additions and 49 deletions

View File

@@ -33,8 +33,8 @@ namespace Umbraco.Tests.Benchmarks
public SqlTemplatesBenchmark()
{
var mappers = new NPoco.MapperCollection( );
var factory = new FluentPocoDataFactory((type, iPocoDataFactory) => new PocoDataBuilder(type, mappers).Init());
var mappers = new NPoco.MapperCollection();
var factory = new FluentPocoDataFactory((type, iPocoDataFactory) => new PocoDataBuilder(type, mappers).Init(), mappers);
SqlContext = new SqlContext(new SqlServerSyntaxProvider(Options.Create(new GlobalSettings())), DatabaseType.SQLCe, factory);
SqlTemplates = new SqlTemplates(SqlContext);