mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-09 19:04:44 +08:00
26 lines
547 B
C#
26 lines
547 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using OpenAuth.Domain.Interface;
|
|
using OpenAuth.Domain.Model;
|
|
|
|
namespace OpenAuth.Infrastructure.Repository
|
|
{
|
|
public class UserRepository :BaseRepository, IUserRepository
|
|
{
|
|
public User FindBy(string username)
|
|
{
|
|
try
|
|
{
|
|
return _Context.Users.First(e => e.Account == username);
|
|
}
|
|
catch (Exception)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|