title: C# EF DefaultIfEmpty with Where().Select()
body: <p>Is there a way similar to what we can do with linq for left outer join with method based query syntax. </p>
  
  <p>e.g. </p>
  
  <pre><code>var a = from m in context.MainClass
          join r in context.RefClass on m.RefID equals r.ID into joinedent
          from j in joinedent.DefaultIfEmpty()
          select new { m.Name , j.TypeName }
  </code></pre>
  
  <p>Can I convert this into method based syntax with navigation property default if null</p>
  
  <pre><code>var a = context.MainClass.Select(x=&gt; new {
                 m.Name
                 m.RefClass.TypeName // here need default if RefClass is null 
          })
  </code></pre>
  
  <p>I can do like <code>(m.RefClass != null)?m.RefClass.TypeName:""</code>   but would like to know if there is a proper way to do this like in above linq.</p>
  
  <p>Thanks       </p>