The group's type name is not usable

The TypeName is not a valid C# name, or it repeats a name Bevel already generates.

  • Error
  • BEVEL065

What it means

Each group generates a small type. Its name must be a valid identifier, differ from its container, and be unique inside it.

Example message

text
Data/Posts/BlogPost.cs(6,15): error BEVEL065: [GroupBy("Tags")] on 'BlogPost.Tags': 'PostGroups' is the name of the containing class PostGroups; a nested type cannot have the name of its container. Set TypeName = "..." to something else. Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel065/

How to fix

Set a different name with TypeName = "..." on the attribute.