fix: optimiser la récupération du nombre total d'artistes en utilisant Enumerable.Count
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user