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 have got the follwing domain model Person: PersonCommunication: Phone inherites from PersonCommunication EMail inherites from PersonCommunication WebSide inherites from PersonCommunication
List<Person> persons = (from c in uow.PersonCommunications That works. What is not working is: persons = ( from p in uow.People Error message "Query Error: Could not find field [ComType] on model [Person]" I now want to have a list of persons with the FirstName like "%f%" and having a WebSide: List<Person> persons = (from c in uow.PersonCommunications Error Message translated from german: Can someone give me a hint how to query the domain model? Kind regards,
|
|
|
Hi Sörnt, Rather than using c is WebSide have a look at using the .OfType extension method to achieve the same result. The second issue looks more like a bug, so I will have a look at if we can create a repro here for this behavior.
Jeremy
|
|
|
Hi Jeremy, thank you for having a look at my issue. I attached the test project and the SQL script (MS SQL 2005) for creating the tables. Kind regards, |
|
|
Hi Jeremy, persons = (from Is working now :-) Thank you very much. Kind regards, Sörnt
|
|