프로젝트

일반

사용자정보

통계
| 개정판:

hytos / ID2.Manager / ID2.Manager.Dapper / Repository / UserRepository.cs @ 8164f84e

이력 | 보기 | 이력해설 | 다운로드 (563 Bytes)

1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

    
7
using ID2.Manager.Data.Models;
8

    
9
namespace ID2.Manager.Dapper.Repository
10
{
11
    public class UserRepository : BaseRepository
12
    {
13
        public UserRepository(string connectionStr) : base(connectionStr) {}
14

    
15
        public UserInfo GetUserInfo(string userId, string userPW)
16
        {
17
            string query = $@"
18
select * from dbo.Users";
19

    
20
            return Query<UserInfo>(query, new { userId, userPW }).FirstOrDefault();
21
        }
22
    }
23
}