14 lines
386 B
C#
14 lines
386 B
C#
|
|
using QYZH.InteractiveMagazine.Models.Entity;
|
||
|
|
|
||
|
|
namespace QYZH.InteractiveMagazine.Repository;
|
||
|
|
|
||
|
|
public class AdminUserRepository : BaseRepository<AdminUser>, IAdminUserRepository
|
||
|
|
{
|
||
|
|
public async Task<AdminUser?> GetByUserNameAsync(string userName)
|
||
|
|
{
|
||
|
|
return await Db.Queryable<AdminUser>()
|
||
|
|
.Where(x => x.UserName == userName)
|
||
|
|
.FirstAsync();
|
||
|
|
}
|
||
|
|
}
|