fix: optimiser la récupération du nombre de styles en utilisant Enumerable.Count
This commit is contained in:
@@ -184,7 +184,7 @@ public class DbStyleRepository : IStyleRepository
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
int count = this.context.Styles.Count();
|
int count = Enumerable.Count(this.context.Styles);
|
||||||
this.logger.LogDebug("Nombre total de styles: {Count}", count);
|
this.logger.LogDebug("Nombre total de styles: {Count}", count);
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user