Nhibernate table per subclass strategy problem when getting objects?

You'll never get the abstract class because the whole point of an abstract class is that you can't instantiate one. Besides your code will return only the Document facade to the rest of your code anyway. So I'm not sure what the problem really is.

I know you cannot instantiate an abstract class but you can cast an object to the abstract class's type. – Para Jan 9 at 11:35 @Para, that's true, but if you examine the object it will still be the concrete type. – Vadim Jan 9 at 15:48.

It is not possible to retrieve an instance of Document1 or Document2 that only populates the properties that are defined in the abstract class. In . NET, you are always working with an instance of a concrete class even if the type is declared as an interface or abstract class.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions