Skip to main content

OrmLiteValidationSource

Assembly: ServiceStack.Server.dll
View Source
Declaration
public class OrmLiteValidationSource : object, IValidationSource, IRequiresSchema, IValidationSourceAdmin, IClearable

Properties

DbFactory

View Source
Declaration
public IDbConnectionFactory DbFactory { get; }

Cache

View Source
Declaration
public ICacheClient Cache { get; }

CacheDuration

View Source
Declaration
public TimeSpan? CacheDuration { get; }

NamedConnection

View Source
Declaration
public string NamedConnection { get; set; }

Methods

GetValidationRules(Type)

View Source
Declaration
public IEnumerable<KeyValuePair<string, IValidateRule>> GetValidationRules(Type type)
Returns

IEnumerable<KeyValuePair<System.String,ServiceStack.IValidateRule>>

Parameters
TypeName
Typetype

InitSchema()

View Source
Declaration
public void InitSchema()

GetAllValidateRules()

View Source
Declaration
public List<ValidationRule> GetAllValidateRules()
Returns

List<ServiceStack.ValidationRule>

GetAllValidateRulesAsync()

View Source
Declaration
public async Task<List<ValidationRule>> GetAllValidateRulesAsync()
Returns

Task<List<ServiceStack.ValidationRule>>

GetAllValidateRulesAsync(String)

View Source
Declaration
public async Task<List<ValidationRule>> GetAllValidateRulesAsync(string typeName)
Returns

Task<List<ServiceStack.ValidationRule>>

Parameters
TypeName
System.StringtypeName

SaveValidationRulesAsync(List<ValidationRule>)

View Source
Declaration
public async Task SaveValidationRulesAsync(List<ValidationRule> validateRules)
Returns

Task

Parameters
TypeName
List<ServiceStack.ValidationRule>validateRules

SaveValidationRules(List<ValidationRule>)

View Source
Declaration
public void SaveValidationRules(List<ValidationRule> validateRules)
Parameters
TypeName
List<ServiceStack.ValidationRule>validateRules

GetValidateRulesByIdsAsync(Int32[])

View Source
Declaration
public async Task<List<ValidationRule>> GetValidateRulesByIdsAsync(params int[] ids)
Returns

Task<List<ServiceStack.ValidationRule>>

Parameters
TypeName
System.Int32[]ids

DeleteValidationRulesAsync(Int32[])

View Source
Declaration
public async Task DeleteValidationRulesAsync(params int[] ids)
Returns

Task

Parameters
TypeName
System.Int32[]ids

ClearCacheAsync()

View Source
Declaration
public Task ClearCacheAsync()
Returns

Task

Clear()

View Source
Declaration
public void Clear()

Implements