[DotNetDataSource(Title = "Flickr API Key", Description = "(required)")]
public string ApiKey { get; set; }
With the description as "required" suggesting that we can't force the parameter to mandatory.
I've tried decorating parameters with [Required] also doesn't force mandatory
Perhaps there isn't a mechanism for making datatype params mandatory???
Am I missing a trick?
I did see the [ValidationProperty("isValid")] decorator mentioned for classes, but that's not quite what is required, and unsure if this would work in this instance?
DotNetDataSource Addtional Options - make mandatory?
I have used the additional options via during data-type configuration.
I notice that in the flickr extension you set
With the description as "required" suggesting that we can't force the parameter to mandatory.
I've tried decorating parameters with [Required] also doesn't force mandatory
Perhaps there isn't a mechanism for making datatype params mandatory???
Am I missing a trick?
I did see the [ValidationProperty("isValid")] decorator mentioned for classes, but that's not quite what is required, and unsure if this would work in this instance?
Hi Mike, no, unfortunately there's nothing to force a custom config property to be mandatory - it'd be good to have tho, so have raised an issue.
is working on a reply...