From 9818f785f9131f53417a2c73b9408091e5dceab3 Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Wed, 1 Apr 2026 16:00:38 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20optimiser=20la=20r=C3=A9cup=C3=A9ration?= =?UTF-8?q?=20du=20nombre=20de=20styles=20en=20utilisant=20Enumerable.Coun?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.Repository/DbStyleRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Webzine.Repository/DbStyleRepository.cs b/Webzine.Repository/DbStyleRepository.cs index 0a6894b..a189ffd 100644 --- a/Webzine.Repository/DbStyleRepository.cs +++ b/Webzine.Repository/DbStyleRepository.cs @@ -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; }