I have a simple model made in the designer. A single table made to two classes (Page, News) with inheritance on a PageType property that is an int. I can select object from the context with typeOf etc, and it works fine. But, when I´m trying to insert a new object that is not of the default type (Page), I get an error. Code Snippet Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at System.Data.Linq.ChangeTracker.StandardChangeTracker.StandardTrackedObject.SynchDependentData()
Read More...