LINQ in Action roller

Linq to Sql - Inheritance - Problem Inserting new object

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...
Published Monday, January 28, 2008 6:38 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication