我确信这对于知道答案的人来说是基本的。但我被困住了。我试图查找答案无济于事。如何在代码后面引用 fbRegistered 值?
using (kvEntities ent = new kvEntities())
{
var user = from u in ent.kvUsers
where u.fbID == id
select new { u.fbID, u.fbRegistered};
if (user.fbRegistered) // < ???
{
// so how do I reference fbRegistered just above?
// this gives me an error.
}
}
谢谢!