Added validation to admin pages
This commit is contained in:
@@ -11,11 +11,12 @@ public interface IAdminPropertyGenerator<TProperty> {
|
||||
IAdminPropertyGenerator<TProperty> Ignore(bool ignore = true);
|
||||
IAdminPropertyGenerator<TProperty> Generated(bool generated = true);
|
||||
IAdminPropertyGenerator<TProperty> Bold(bool bold = true);
|
||||
IAdminPropertyGenerator<TProperty> Unique(bool unique = true);
|
||||
|
||||
IAdminPropertyGenerator<TProperty> DisplayName(string displayName);
|
||||
IAdminPropertyGenerator<TProperty> Description(string description);
|
||||
IAdminPropertyGenerator<TProperty> Prefix(string prefix);
|
||||
IAdminPropertyGenerator<TProperty> Validator(Func<object, bool> validator);
|
||||
IAdminPropertyGenerator<TProperty> Validator(Func<TProperty, string> validator);
|
||||
IAdminPropertyGenerator<TProperty> IsSelector<TSelector>();
|
||||
IAdminPropertyGenerator<TProperty> Parser<TModel>(Func<TModel, string, TProperty> parser);
|
||||
IAdminPropertyGenerator<TProperty> ParserForListType<TModel, TInnerProperty>(Func<TModel, string, TInnerProperty> parser);
|
||||
|
||||
Reference in New Issue
Block a user