I have a Task entity in my Linq to SQL dbml. It's self referencing with ID and ParentID columns. I have an Association that associates the two IDs together.
it seems like everything works fine in the intellisense. It'll let me type out Task.Parent.ID and even Task.Parent.Parent.ID, etc. However, it gives me the ol' "Object reference not set to an instance of an object." error.
All my other associations work fine with my other entities. Only the self referencing entity errors.
Is there something special I need to do to get it to work or am I better off just adding a second Task entity and call it ParentTask and make the association that way?