From 07d414fc8277c21257a70502991580876104b03d Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Wed, 1 Apr 2026 16:22:53 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20optimiser=20la=20r=C3=A9cup=C3=A9ration?= =?UTF-8?q?=20du=20nombre=20total=20d'artistes=20en=20utilisant=20Enumerab?= =?UTF-8?q?le.Count?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.Repository/DbArtisteRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Webzine.Repository/DbArtisteRepository.cs b/Webzine.Repository/DbArtisteRepository.cs index 0b3748f..f6f868b 100644 --- a/Webzine.Repository/DbArtisteRepository.cs +++ b/Webzine.Repository/DbArtisteRepository.cs @@ -182,7 +182,7 @@ namespace Webzine.Repository { try { - int count = this.context.Artistes.Count(); + int count = Enumerable.Count(this.context.Artistes); this.logger.LogDebug("Nombre total d'artistes dans la base: {Count}", count); return count; }