using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore.Metadata.Conventions;
namespace Jellyfin.Database.Providers.Sqlite;
internal class DoNotUseReturningClauseConvention : IModelFinalizingConvention
{
///
public void ProcessModelFinalizing(
IConventionModelBuilder modelBuilder,
IConventionContext context)
{
foreach (var entityType in modelBuilder.Metadata.GetEntityTypes())
{
entityType.UseSqlReturningClause(false);
}
}
}