https://learn.microsoft.com/ja-jp/dotnet/api/system.componentmodel.dataannotations.compareattribute?view=netframework-4.8.1&viewFallbackFrom=net-8.0
CompareAttribute Class (System.ComponentModel.DataAnnotations) | Microsoft Learn
Provides an attribute that compares two properties.
class systemdataannotationsmicrosoftlearn