add phone number filtering to IdentityUserRepository

pull/4300/head
Alper Ebicoglu 5 years ago
parent babae4d9f4
commit 6557d1b760

@ -139,7 +139,8 @@ namespace Volo.Abp.Identity.EntityFrameworkCore
u.UserName.Contains(filter) ||
u.Email.Contains(filter) ||
(u.Name != null && u.Name.Contains(filter)) ||
(u.Surname != null && u.Surname.Contains(filter))
(u.Surname != null && u.Surname.Contains(filter)) ||
(u.PhoneNumber != null && u.PhoneNumber.Contains(filter))
)
.OrderBy(sorting ?? nameof(IdentityUser.UserName))
.PageBy(skipCount, maxResultCount)
@ -184,7 +185,8 @@ namespace Volo.Abp.Identity.EntityFrameworkCore
u.UserName.Contains(filter) ||
u.Email.Contains(filter) ||
(u.Name != null && u.Name.Contains(filter)) ||
(u.Surname != null && u.Surname.Contains(filter))
(u.Surname != null && u.Surname.Contains(filter)) ||
(u.PhoneNumber != null && u.PhoneNumber.Contains(filter))
)
.LongCountAsync(GetCancellationToken(cancellationToken));
}

@ -134,7 +134,8 @@ namespace Volo.Abp.Identity.MongoDB
u.UserName.Contains(filter) ||
u.Email.Contains(filter) ||
(u.Name != null && u.Name.Contains(filter)) ||
(u.Surname != null && u.Surname.Contains(filter))
(u.Surname != null && u.Surname.Contains(filter)) ||
(u.PhoneNumber != null && u.PhoneNumber.Contains(filter))
)
.OrderBy(sorting ?? nameof(IdentityUser.UserName))
.As<IMongoQueryable<IdentityUser>>()
@ -185,7 +186,8 @@ namespace Volo.Abp.Identity.MongoDB
u.UserName.Contains(filter) ||
u.Email.Contains(filter) ||
(u.Name != null && u.Name.Contains(filter)) ||
(u.Surname != null && u.Surname.Contains(filter))
(u.Surname != null && u.Surname.Contains(filter)) ||
(u.PhoneNumber != null && u.PhoneNumber.Contains(filter))
)
.LongCountAsync(GetCancellationToken(cancellationToken));
}

Loading…
Cancel
Save