fix: optimiser la récupération du nombre de styles en utilisant Enumerable.Count

This commit is contained in:
mirage
2026-04-01 16:00:38 +02:00
parent e47a50e0da
commit 9818f785f9

View File

@@ -184,7 +184,7 @@ public class DbStyleRepository : IStyleRepository
{
try
{
int count = this.context.Styles.Count();
int count = Enumerable.Count(this.context.Styles);
this.logger.LogDebug("Nombre total de styles: {Count}", count);
return count;
}