EntityCoreTFieldsMakeInvalidFieldReadsFatal Field |
Flag (default: false), which can be used to track down errors in code at runtime when migrating from LLBLGen Pro v1.0.xx to v2.0.
When set to true, it will make invalid field reads fatal and will make the entity throw an ORMInvalidFieldReadException when a field is
read while the field's value hasn't been set yet.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax public static bool MakeInvalidFieldReadsFatal
Public Shared MakeInvalidFieldReadsFatal As Boolean
Field Value
Type:
BooleanRemarks This is to track down the following errors:
OrderEntity order = new OrderEntity();
order.SomeNullableField+=10;
This code resulted in the value 10 in v1.0, but will result in 0 in v2, if you're using .NET 2.0. This is caused by the fact that SomeNullableField
is null/Nothing in v2 when the entity is initialized, not 0.
By switching on this flag you can track down these errors at runtime.
It will cause problems with asp.net grids and new entities, so use this flag only for checking the code after you've migrated to v2.
See Also