NullReferenceException on query over navigation properties
Posted: Thu 02 Oct 2008 09:40
Hello,
i've send You an E-Mail to [email protected] on this issue on monday and didn't get any reply yet! The Mail mail contains a sample project to demonstrate the behaviour, because i suggested it would be to complex to explain in the forum. As You didn't response the the E-Mail request i'll try to explain the problem here:
I get a NullReferenceException when i query an entity by using '==' or 'Equals()' on at least 2 string properties of any navigation property. This problem only exists when several conditions (under several combinations) are satisfied. For example the use of 'Include' functions in the query, or if both entities are derived from an abstract Entity class.
As i already mentioned i've created a sample project with a sample database to reproduce this behaviour very easy. If You like, i'll send it to you again.
I would realy appreciate, if You could give any reply on this, because we have to decide how to continue!
Thank's in advance and best regards,
Johannes
i've send You an E-Mail to [email protected] on this issue on monday and didn't get any reply yet! The Mail mail contains a sample project to demonstrate the behaviour, because i suggested it would be to complex to explain in the forum. As You didn't response the the E-Mail request i'll try to explain the problem here:
I get a NullReferenceException when i query an entity by using '==' or 'Equals()' on at least 2 string properties of any navigation property. This problem only exists when several conditions (under several combinations) are satisfied. For example the use of 'Include' functions in the query, or if both entities are derived from an abstract Entity class.
As i already mentioned i've created a sample project with a sample database to reproduce this behaviour very easy. If You like, i'll send it to you again.
I would realy appreciate, if You could give any reply on this, because we have to decide how to continue!
Thank's in advance and best regards,
Johannes