Class ValidationProviderBase
Base class for validation provider.
Contains common validation logic for schema and type checking.
public abstract class ValidationProviderBase : IValidationProvider
Inheritance
Implements
Derived
Methods
AnalyzeSchemaChangesAsync<TProps>(IRedbScheme)
Check schema change compatibility.
public Task<SchemaChangeReport> AnalyzeSchemaChangesAsync<TProps>(IRedbScheme scheme) where TProps : class
AnalyzeSchemaChangesAsync<TProps>(long)
public Task<SchemaChangeReport> AnalyzeSchemaChangesAsync<TProps>(long schemeId) where TProps : class
GetSupportedTypesAsync()
Get all supported types.
public Task<List<SupportedType>> GetSupportedTypesAsync()
ValidatePropertyConstraints(Type, string, bool, bool)
Validate property constraints and arrays.
public ValidationIssue? ValidatePropertyConstraints(Type propertyType, string propertyName, bool isRequired, bool isArray)
ValidateSchemaAsync<TProps>(IRedbScheme, bool)
Validate schema before synchronization (with contract).
public Task<SchemaValidationResult> ValidateSchemaAsync<TProps>(IRedbScheme scheme, bool strictDeleteExtra = true) where TProps : class
ValidateSchemaAsync<TProps>(string, bool)
Validate schema before synchronization.
public Task<SchemaValidationResult> ValidateSchemaAsync<TProps>(string schemeName, bool strictDeleteExtra = true) where TProps : class
ValidateTypeAsync(Type, string)
Validate C# type correspondence with REDB supported types.
public Task<ValidationIssue?> ValidateTypeAsync(Type csharpType, string propertyName)