Skip to main content

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
TypeName
ServiceStack.IValidationSourcesource

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
TypeName
ServiceStack.IValidationSourcesource
System.StringtypeName

SaveValidationRulesAsync(IValidationSource, List<ValidationRule>)

View Source
Declaration
public static Task SaveValidationRulesAsync(this IValidationSource source, List<ValidationRule> validateRules)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.IValidationSourcesource
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
TypeName
ServiceStack.IValidationSourcesource
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
TypeName
ServiceStack.IValidationSourcesource
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
TypeName
ServiceStack.IValidationSourcesource
System.Int32[]ids