On 12/25/2011 10:00 AM, Itzik Saban wrote:
Hi Markus,

How would you tell SQLite, or any other DB, that a column is nullable only for certain records and not-nullable for others? I don't know any DB that currently supports that.

Therefore it's not an NHibernate problem...

Hi,

I believe you didn't quite understand me ;-)

What I'm saying is that NHibernate's SchemaExport needs to generate nullable columns for those properties which are only present in the derived class. Otherwise, it would be impossible to store an entity of type 'Base' in the table using the generated schema.

And that's exactly where it goes wrong: it creates a table with those columns set up as NOT NULL. Thus, it cannot store an entity of type 'Base' in its very own database schema.

That's as clear as it gets for a bug :)

Regards,
-Markus-

--
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to