ValidationSourceUtils
Assembly: ServiceStack.dll
View Source
Declaration
public static class ValidationSourceUtils
Methods
InitSchema(IValidationSource)
View Source
Declaration
public static void InitSchema(this IValidationSource source)
Parameters
Type | Name |
---|---|
ServiceStack.IValidationSource | source |
GetAllValidateRulesAsync(IValidationSource, String)
View Source
Declaration
public static async Task<List<ValidationRule>> GetAllValidateRulesAsync(this IValidationSource source, string typeName)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.ValidationRule>>
Parameters
Type | Name |
---|---|
ServiceStack.IValidationSource | source |
System.String | typeName |
SaveValidationRulesAsync(IValidationSource, List<ValidationRule>)
View Source
Declaration
public static Task SaveValidationRulesAsync(this IValidationSource source, List<ValidationRule> validateRules)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IValidationSource | source |
System.Collections.Generic.List<ServiceStack.ValidationRule> | validateRules |
DeleteValidationRulesAsync(IValidationSource, Int32[])
View Source
Declaration
public static async Task DeleteValidationRulesAsync(this IValidationSource source, params int[] ids)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IValidationSource | source |
System.Int32[] | ids |
ClearCacheAsync(IValidationSource, Int32[])
View Source
Declaration
public static async Task ClearCacheAsync(this IValidationSource source, params int[] ids)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IValidationSource | source |
System.Int32[] | ids |
GetValidateRulesByIdsAsync(IValidationSource, Int32[])
View Source
Declaration
public static async Task<List<ValidationRule>> GetValidateRulesByIdsAsync(this IValidationSource source, params int[] ids)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.ValidationRule>>
Parameters
Type | Name |
---|---|
ServiceStack.IValidationSource | source |
System.Int32[] | ids |