You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
706 B

2 years ago
namespace WTA.Shared.Attributes;
[AttributeUsage(AttributeTargets.Property)]
public class SelectAttribute : Attribute
{
public SelectAttribute(bool mutiple = false, string? label = null, string? value = null, string? controller = null, string? action = null, string? parentId = null)
{
this.Mutiple = mutiple;
this.Label = label;
this.Value = value;
this.Controller = controller;
this.Action = action;
this.ParentId = parentId;
}
public bool Mutiple { get; }
public string? Label { get; }
public string? Value { get; }
public string? Controller { get; }
public string? Action { get; }
public string? ParentId { get; }
}