예제 #1
0
파일: UserRepo.cs 프로젝트: s7ry93r/TM
 public bool DoesUserNameExist(string name)
 {
     using (TMContext db = new TMContext())
     {
         return(db.AppUsers.Any(o => o.Name.Equals(name)));
     }
 }
예제 #2
0
파일: UserRepo.cs 프로젝트: s7ry93r/TM
 public AppUser FindUserByName(string userName)
 {
     using (TMContext db = new TMContext())
     {
         var user = db.AppUsers.Where(o => o.Name.ToLower().Equals(userName));
         if (user.Any())
         {
             return(user.FirstOrDefault());
         }
         else
         {
             throw new Exception("can't find user");
         }
     }
 }
예제 #3
0
파일: UserRepo.cs 프로젝트: s7ry93r/TM
 public string GetUserPassword(string name)
 {
     using (TMContext db = new TMContext())
     {
         var user = db.AppUsers.Where(o => o.Name.ToLower().Equals(name));
         if (user.Any())
         {
             return(user.FirstOrDefault().Pwd);
         }
         else
         {
             return(string.Empty);
         }
     }
 }
예제 #4
0
 public ActivityController(TMContext context)
 {
     _context = context;
 }
 public PatientDetailRepository(TMContext db)
 {
     _db = db;
 }
예제 #6
0
 public TravelGuideService(TMContext db) : base(db)
 {
 }
 public UserRepository(TMContext db, IOptions <AppSettings> appsettings)
 {
     _db          = db;
     _appSettings = appsettings.Value;
 }
예제 #8
0
 public CommentService(TMContext db) : base(db)
 {
 }
예제 #9
0
 public PurchaseHistoryRepositoryEF(TMContext conn)
     : base(conn)
 {
 }
예제 #10
0
 public TMEventAreaRepositoryEF(TMContext conn)
     : base(conn)
 {
 }
예제 #11
0
 public AreaRepositoryEF(TMContext conn)
     : base(conn)
 {
 }
예제 #12
0
 public VenueRepositoryEF(TMContext conn)
     : base(conn)
 {
 }
예제 #13
0
 public TMUserRepositoryEF(TMContext conn)
     : base(conn)
 {
 }
예제 #14
0
 public TMLayoutRepositoryEF(TMContext conn)
     : base(conn)
 {
 }
예제 #15
0
 public TMEventSeatRepositoryEF(TMContext conn)
     : base(conn)
 {
 }
예제 #16
0
 public CommentReviewService(TMContext db) : base(db)
 {
 }
예제 #17
0
 public BaseService(TMContext db)
 {
     _db = db ?? throw new ArgumentNullException(nameof(db));
 }
예제 #18
0
 public GuideRouteService(TMContext db) : base(db)
 {
 }
예제 #19
0
 public SeatRepositoryEF(TMContext conn)
     : base(conn)
 {
 }
 public TemperatureLogEntryRepository(TMContext db)
 {
     _db = db;
 }
예제 #21
0
 public RoleService(TMContext db) : base(db)
 {
 }
예제 #22
0
 public UserService(TMContext db) : base(db)
 {
 }
 public RelationShipService(TMContext db) : base(db)
 {
 }