Hi,
LLBLGen: 2.6 Final
I have a question on the order of "<[Foreach RelatedEntity ManyToOne]>". I'm generating some code for the first time in a long, long time and comparing to the existing code to be sure we are still doing it right. Doing well, however the output order of the relations is coming out in different orders. When there are multiple relationships to one table, the output is created in the opposite order. While this doesn't matter functionally, it makes it pretty hard to determine if what I'm getting matches existing code.
Examples:
Existing Code:
// CellDependency.DependantStatementDefinitionNumber - CellDefinition.StatementDefinitionNumber
// CellDependency.DependantIdentifierDefinitionNumber - CellDefinition.IdentifierDefinitionNumber
// CellDependency.DependantCellDefinitionNumber - CellDefinition.CellDefinitionNumber
_cellDefinition = null;
// CellDependency.DependencyStatementDefinitionNumber - CellDefinition.StatementDefinitionNumber
// CellDependency.DependencyIdentifierDefinitionNumber - CellDefinition.IdentifierDefinitionNumber
// CellDependency.DependencyBeginningCellDefinitionNumber - CellDefinition.CellDefinitionNumber
_cellDefinition_ = null;
Newly Generated Code:
// CellDependency.DependencyStatementDefinitionNumber - CellDefinition.StatementDefinitionNumber
// CellDependency.DependencyIdentifierDefinitionNumber - CellDefinition.IdentifierDefinitionNumber
// CellDependency.DependencyBeginningCellDefinitionNumber - CellDefinition.CellDefinitionNumber
_cellDefinition_ = null;
// CellDependency.DependantStatementDefinitionNumber - CellDefinition.StatementDefinitionNumber
// CellDependency.DependantIdentifierDefinitionNumber - CellDefinition.IdentifierDefinitionNumber
// CellDependency.DependantCellDefinitionNumber - CellDefinition.CellDefinitionNumber
_cellDefinition = null;
Many of the Foreach commands indicate that they sort the output. Foreach RelatedEntity does not.
How can I get consistent, and expected/sorted order on RelatedEntities?
Thanks.
Greg