title: how can we assign an Observable collection through EF LINQ statements
body: <p>Is it possible to assign a collection from a database entity to an ObservableCollection using entity framework?</p>
  
  <p>This is what iv tried so far
  I tried converting the list to an ObsrvableCollection using a constructor..but LINQ does not allow constructors which accept parameter.</p>
  
  <p>Creating an extension for Ienumerable called ToObservable collection..but EF Does not recognize this.</p>
  
  <p>Is there any other elegant solution to this.
  Given below is the code i am using...and fails</p>
  
  <pre><code>using (var db = new clientEntities())
  {
                  var data = from p in db.CLIENTs
                             select new Contracts.Client()
                                        {
                                            ClientID = p.CLIENT_ID,
                                            FirstName = p.FIRST_NAME,                                          
                                            PayInfo = new ObservableCollection&lt;PayInfo&gt;(p.PAY_INFO.Select(n=&gt; new PaymentInfo(){ 
                                                PayID=n.ID                                                    
                                                }))
                                        };
      }
  </code></pre>
  
  <p>The PayInfofield is an Observable collection. Is it possible to elegantly assign it without using temporary variables.</p>