Using version of LLBLGen downloaded within the last two weeks; Net2.0; Two Class SelfServicing; Visual Basic.Net; SQLServer2000.
I am getting a problem when binding fields that are flagged as (.Net 2.0) Generate as Nullable type.
I first noticed this in relation to an Int Foreign Key field - hence the heading of this post. However after some testing I realised that it was happening with Nullable integer fields even when they were not foreign keys. I then tested Nullable dates and found the same problem.
This is a Windows Forms project and contains an edit form which loads a single entity and binds its fields to textboxes, comboboxes and datetimepickers.
What I am finding is that when I edit one of these nullable fields, as soon as I move the cursor to another field the edited field reverts to its original value.
The reversion happens between the Validating and the Validated events both of which occur.
However, I can edit the values in code (so I can work around this problem by not binding the fields but passing the entity values to the form and back to the entity in code).
If I uncheck the Net2.0 Nullable box in the LLBLGenPro designer for these fields and re-generate then the problem disappears.
I set up a very simple form to test this, removed all the relevant tables, lists and entities from the LLBLGenPro designer then added them back again, deleted the whole data project and then re-generated it, and still had the same problem.
Is this a bug in LLBLGenPro or .Net or is there something I have missed?
Since writing the above I have downloaded the new V2.5 and converted this project, re-generated it, and updated the references. The problem still exists.