Hasan Akpürüm
blog-post-1

LinQ İf Kullanımı

from p in db.products
if p.price>0
select new
{
  Owner=from q in db.Users
        select q.Name
}
else
select new
{
   Owner = from r in db.ExternalUsers
            select r.Name
}

Yorum Yaz