I'm running into a problem with some code that uses the IEntityField2.DataType field in an upgrade from LLBLGen 1.0 to 2.0.
Basically I turned off nullable types support for my project (for now) using the plugin Frans developed. However, my code still breaks because the DataType of a field ends up being Nullable<T> even though that support is turned off.
For example in the table ActivityStatus, the UpdateById column is nullable in the db but with the checkbox unchecked in LLBLGen to turn off the generation of a .NET nullable type. However, getting the IEntityField2 from EntityFieldFactory gives me back a DataType that says it is still Nullable<System.Int32>.
Here is the code from FieldInfoProvider.cs:
base.AddElementFieldInfo("ActivityStatusEntity", "UpdateById", typeof(Nullable<System.Int32>), false, true, false, true, (int)ActivityStatusFieldIndex.UpdateById, 0, 0, 10);
It shouldn't be Nullable<System.Int32> but rather just System.Int32, right? I deleted that file and let it regenerate just to be sure.
Lastly, GenerateNullableFieldsAsNullableTypes in the designed project properties must only apply to new entity fields (hence the reason for the plugin)?
Thanks!!