WCF 서비스 작업에 문제가 있습니다. 데이터베이스에서 passwod 값을 가져오고 통과해야하는 경우 false 값을 반환합니다. 내가 도대체 뭘 잘못하고있는 겁니까? 당신은 (어떤 된 IQueryable /를 IEnumerable 반대)에 전달 된 암호를 사용하여 하나의 검색 항목을 비교하려면 같은WCF 서비스 작업이 항상 false를 반환합니다.
public bool LogIn(string userId, string passwd)
{
bool prompt;
ProgDBEntities context = new ProgDBEntities();
IQueryable<string> haslo = (from p in context.UserEntity where p.UserID == userId select p.Passwd);
bool passOk = String.Equals(haslo, passwd);
if (passOk == true)
{
prompt = true;
}
else
{
prompt = false;
}
return prompt;
}
작동 방식 : D 정말 고마워요. :) – bohunn