This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I am trying to retrieve all items that DO HAVE associated 1-to-n items: IList<Parent> Parents = uow.Find<Parents>(Entity.Attribute("Children") != null); But SQL server is returning an error "Invalid column name.." Is there a way of loading items based their associations? |
|
|
Try this: IList<Parent> Parents = uow.Find<Parent>(Entity.Attribute("Children").Exists());
Jeremy |
|