bcquality/microsoft/knowledge/data-modeling/table-relation-extensions-are-additive-and-top-down.bad.al
Jesper Schulz-Wedde e81632b4be Complete AL review knowledge readiness
Fill telemetry and Query coverage, strengthen thin review domains, correct audited content defects, and add deterministic cheap-model evaluation and reference-integrity safeguards.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9825b012-e653-496a-9310-c1f4b6f8ac27
2026-07-15 07:19:15 +02:00

35 lines
703 B
AL

enum 50434 "Relation Type Bad"
{
Extensible = true;
value(0; Customer) { }
}
table 50435 "Related Entity Bad"
{
fields
{
field(1; Type; Enum "Relation Type Bad") { }
field(2; "Related No."; Code[20])
{
// This unconditional relation wins before extension branches run.
TableRelation = Customer;
}
}
}
enumextension 50436 "Relation Type Bad Ext" extends "Relation Type Bad"
{
value(10; Resource) { }
}
tableextension 50437 "Related Entity Bad Ext" extends "Related Entity Bad"
{
fields
{
modify("Related No.")
{
TableRelation = if (Type = const(Resource)) Resource;
}
}
}