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

@@ -45,7 +45,7 @@ namespace Umbraco.Cms.Tests.UnitTests.TestHelpers
{
new NullableDateMapper()
};
var pocoDataFactory = new FluentPocoDataFactory((type, iPocoDataFactory) => new PocoDataBuilder(type, pocoMappers).Init());
var pocoDataFactory = new FluentPocoDataFactory((type, iPocoDataFactory) => new PocoDataBuilder(type, pocoMappers).Init(), pocoMappers);
var sqlSyntax = new SqlServerSyntaxProvider(Options.Create(new GlobalSettings()));
SqlContext = new SqlContext(sqlSyntax, DatabaseType.SqlServer2012, pocoDataFactory, factory.GetRequiredService<IMapperCollection>());
Mappers = factory.GetRequiredService<IMapperCollection>();