Skip to content

Parameter attribute with data annotations #15465

@grahamehorner

Description

@grahamehorner

IMHO it would be great to allow the blazor components to enforce parameter contracts using the existing data annotations; eg.

[Required,Parameter,StringLength(80)]
string Name { get; set; }

this would avoid a lot of boilerplate code with the components and/or replication of feature that exist in data annotation libraries today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions