I am using MVC with the LINQ-to-SQL class.
since the foreign key can be null, I have one entry that has fk null and the others have values.
I now show it in the Index view.
In the index view, I enable fk by writing code like
<%= Html.Encode(item.UserModified.UserName) %>
Now I have a problem in that "the reference to the object is not installed."
And this is because we have a zero value in one of the fk field!
so I can write code to check if the related object points to zero or nothing?
Vikas source share