title: How call a custom method in lambda expression . I Use Entity Framework 4 . Stored expression error
body: <p>Is it possible to call a custom method in a lambda expression.?</p>
  
  <pre><code>//Address a : It's an Entity
  public string AddressConstructor(Address a)
  {
      return a.City + "," + a.Province;
  }
  
  
  
  var Test = _db.MyTableTest.Select( t =&gt; new ViewModel
                                     {
                                        MyID = t.ID,
                                        StringAddress = AddressConstructor(t.Addr)
                                     };
  </code></pre>