Skip to content

Commit

Permalink
LC0004 Property "LookupPageID" and "DrillDownPageID" must be filled -…
Browse files Browse the repository at this point in the history
… Should not apply to temporary tables #69
  • Loading branch information
StefanMaron committed Oct 18, 2021
1 parent d735101 commit a05bda6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Design/Rule0004LookupPageIdAndDrillDownPageId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ private void CheckForLookupPageIdAndDrilldownPageId(SymbolAnalysisContext contex

private void CheckTable(ITableTypeSymbol table, ref SymbolAnalysisContext context) {
if (!IsSymbolAccessible(table)) return;
if (table.GetProperty(PropertyKind.TableType)?.ValueText == "Temporary") return;

bool exists = table.Properties.Where(e => e.PropertyKind == PropertyKind.DrillDownPageId || e.PropertyKind == PropertyKind.LookupPageId).Count() == 2;
if (exists) return;

Expand Down

0 comments on commit a05bda6

Please sign in to comment.