ActivEarth.DAO.UserDAO.GetUserFromUserName C# (CSharp) 메소드

GetUserFromUserName() 공개 정적인 메소드

public static GetUserFromUserName ( string userName ) : UserDataProvider
userName string
리턴 ActivEarth.Server.Service.UserDataProvider
        public static UserDataProvider GetUserFromUserName(string userName)
        {
            using (SqlConnection connection = ConnectionManager.GetConnection())
            {
                var data = new ActivEarthDataProvidersDataContext(connection);
                return data.UserDataProviders.FirstOrDefault(u => u.user_name == userName);
            }
        }