Use LongCount instead of Count for user repo.

pull/3985/head
Halil İbrahim Kalkan 6 years ago
parent 48cf71c059
commit c78e3efe02

@ -64,7 +64,7 @@ namespace Volo.Abp.Users.EntityFrameworkCore
u.Name.Contains(filter) ||
u.Surname.Contains(filter)
)
.CountAsync(GetCancellationToken(cancellationToken));
.LongCountAsync(GetCancellationToken(cancellationToken));
}
}
}

@ -64,8 +64,7 @@ namespace Volo.Abp.Users.MongoDB
u.Name.Contains(filter) ||
u.Surname.Contains(filter)
)
.As<IMongoQueryable<TUser>>()
.CountAsync(GetCancellationToken(cancellationToken));
.LongCountAsync(GetCancellationToken(cancellationToken));
}
}
}
Loading…
Cancel
Save