Hi!
I've got two Entities. One inherits from the other. The parent entity has got a non nullable bool field.
When I try this, I get an NULL-Exception.
ParentEntity newEnt = new ChildEntity();
newEnt.Save();
If I set the bool field to true or false before, the exception is not thrown.
This is the german exception text:
"An exception was caught during the execution of an action query: Der Wert NULL kann in die bool_XXX-Spalte, blablabla-Tabelle, nicht eingefügt werden. Die Spalte lässt NULL-Werte nicht zu. Fehler bei INSERT.
Die Anweisung wurde beendet.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception."
If I check the bool-field before calling the "Save" method, the bool value is set to false by default. But it seems that instead of false LLBLGen tries to write NULL.
Why is that?
(using v2.0 and self servicing)