Suppose we have a simple LINQ to SQL model with only one simple entity 'Foo'. If we inherit a non-LINQ-to-SQL-mapped type 'FooEx' from 'Foo' somewhere in our code, make an instance of 'FooEx', and at sometime, try to attach it to the DataContext as a record of table 'Foo', 'Attach' method raises the following exception:NullReferenceException:Message: "Object reference not set to an instance of an object."StackTrace: at System.Data.Linq.Table`1.Attach(TEntity entity, Boolean asModified) at System.Data.Linq.Table`1.Attach(TEntity entity)
Version