Call Method from LinQ query.

Posted by Jitendra Jadav on Stack Overflow See other posts from Stack Overflow or by Jitendra Jadav
Published on 2010-05-05T11:59:08Z Indexed on 2010/05/05 12:08 UTC
Read the original article Hit count: 225

Filed under:
|
|

Hello Everybody,

I am using Linq query and call method Like..

oPwd = objDecryptor.DecryptIt((c.Password.ToString())

it will return null value.

Means this will not working.

how I Resolve this.

Thanks..

            var q =
            from s in db.User
            join c in db.EmailAccount on s.UserId equals c.UserId
            join d in db.POPSettings on c.PopSettingId equals d.POPSettingsId
            where s.UserId == UserId && c.EmailId == EmailId
            select new
            {
                oUserId = s.UserId,
                oUserName = s.Name,
                oEmailId = c.EmailId,
                oEmailAccId = c.EmailAccId,
                oPwd = objDecryptor.DecryptIt(c.Password.ToString()),
                oServerName = d.ServerName,
                oServerAdd = d.ServerAddress,
                oPOPSettingId = d.POPSettingsId,
            };

© Stack Overflow or respective owner

Related posts about wpf

Related posts about c#