Cómo crear herencia en la clase linq a sql con clase abstracta

I want to have an abstract class with 3 classes extending it which i need to save to a database using linq. I've made a table with all the attributes of the parent class and the 3 subclasses.

Can't figure out how to properly set this up in the OR designer.

When i set TimeRecord's Inheritance modifier to "abstract" i get the following error: error

OR Design

preguntado el 16 de mayo de 11 a las 17:05

1 Respuestas

The GetTable() method tries to create an instance of your class which is abstract it can't do that
remove abstarct modifier from your class

Respondido el 11 de junio de 11 a las 17:06

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.