Skip to content

Commit

Permalink
Use YesSql debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed Nov 9, 2023
1 parent 0c51b91 commit 668086a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public static OrchardCoreBuilder AddDataAccess(this OrchardCoreBuilder builder)
private static YesSql.Configuration GetStoreConfiguration(IServiceProvider sp, YesSqlOptions yesSqlOptions, DatabaseTableOptions databaseTableOptions)
{
var tableNameFactory = sp.GetRequiredService<ITableNameConventionFactory>();
var loggerFactory = sp.GetRequiredService<ILoggerFactory>();

var storeConfiguration = new YesSql.Configuration
{
Expand All @@ -182,7 +183,7 @@ private static YesSql.Configuration GetStoreConfiguration(IServiceProvider sp, Y
ContentSerializer = new PoolingJsonContentSerializer(sp.GetService<ArrayPool<char>>()),
TableNameConvention = tableNameFactory.Create(databaseTableOptions),
IdentityColumnSize = Enum.Parse<IdentityColumnSize>(databaseTableOptions.IdentityColumnSize),
Logger = sp.GetService<ILogger<YesSql.Configuration>>(),
Logger = loggerFactory.CreateLogger("YesSql"),
};

if (yesSqlOptions.IdGenerator != null)
Expand Down

0 comments on commit 668086a

Please sign in to comment.