IgnoreCase needs a string

[Unique(IgnoreCase = true)] is on a member that is not text.

  • Error
  • BEVEL091

What it means

Ignoring case only makes sense for strings.

Example message

text
Data/Posts/BlogPost.cs(6,15): error BEVEL091: Dataset 'Posts': [Unique(IgnoreCase = true)] on 'BlogPost.Order' needs a string member, but it is Int32. Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel091/

How to fix

Remove IgnoreCase = true, or move [Unique] to a string member.