Skip to content

Create ConditionalRequired data annotation #40

Description

@ScottLilly

[ConditionalRequired(DependentProperty = "IsActive", RequiredWhenValue = true)]
public string ActiveUserDetails { get; set; }
public bool IsActive { get; set; }

NOTE: Ensure this works with ComponentModel object validation

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions