DG0001: Invalid Index Name Declaration

Cause

An index name was defined outside the scope of a namespace.

How to Fix Violations

Place the index name in a namespace.

Example

The following violates the rule:

[IndexName] public partial struct Alpha;

The following are valid:

namespace DG0001;

[IndexName] public partial struct Alpha;

and

namespace DG0001
{
  [IndexName] public partial struct Alpha;
}