FrameworkValidatorBaseReportNonOptionalFieldsInSplitOffEntitiesAsCorrectableMessage Method |
Reports every split off entity which has non-optional fields as a correctable message (either an error or a warning)
Namespace:
SD.LLBLGen.Pro.ApplicationCore.Extensibility
Assembly:
SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.10.0.0 (5.10.0)
Syntax protected virtual bool ReportNonOptionalFieldsInSplitOffEntitiesAsCorrectableMessage(
Project toValidate,
bool error
)
Protected Overridable Function ReportNonOptionalFieldsInSplitOffEntitiesAsCorrectableMessage (
toValidate As Project,
error As Boolean
) As Boolean
Parameters
- toValidate
- Type: SD.LLBLGen.Pro.ApplicationCore.ProjectClassesProject
To validate. - error
- Type: SystemBoolean
if set to true true, a violation of the rule is reported as an error, otherwise as a warning.
Return Value
Type:
Booleantrue if no errors were enountered, false otherwise
Remarks For splitted entities A and B, if A is the root of the split (PK side of pk-pk 1:1 relationships) and B the following entity
it has to make sure that fields mapped in A but not in B are nullable.
we've to find these splitted entities first, then find the root of the hierarchies, and then check all fields which are not in the root
but which are present in the other entities (which are split off) and if they're nullable. All fields not in the root but in the split off entities
have to be nullable.
See Also