You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This way one could have a form using an enum but limiting the usable values (useful for when one is creating multiple distinct forms for the same general operation), or replacing the enum text values.
This way one could have a form using an enum but limiting the usable values (useful for when one is creating multiple distinct forms for the same general operation), or replacing the enum text values.
public override bool CanHandle() =>
GetUnderlyingType(FieldGenerator).IsEnum && !HasExistInAttibute();
private bool HasExistInAttibute() =>
FieldGenerator.Metadata.AdditionalValues.ContainsKey(ExistsInAttribute.ExistsKey)
&& FieldGenerator.Metadata.AdditionalValues[ExistsInAttribute.ExistsKey] as bool? == true;
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
This way one could have a form using an enum but limiting the usable values (useful for when one is creating multiple distinct forms for the same general operation), or replacing the enum text values.
The text was updated successfully, but these errors were encountered: