Skip to content

SqliteValidatorHelper

Namespace: ThinkGeo.Core

Provides guard clauses that validate SQLite feature-layer inputs.

public static class SqliteValidatorHelper

Inheritance objectSqliteValidatorHelper

Methods

CheckFeatureSourceIsInTransaction(bool)

Performs check feature source is in transaction.

public static void CheckFeatureSourceIsInTransaction(bool isInTransaction)

Parameters

isInTransaction bool
The is in transaction.

Returns

void

CheckParameterIsValid(BaseShape, string)

Performs check parameter is valid.

public static void CheckParameterIsValid(BaseShape BasheShapeToTest, string parameterName)

Parameters

BasheShapeToTest BaseShape
The bashe shape to test.

parameterName string
The parameter name.

Returns

void

CheckFeatureSourceIsOpen(bool)

Performs check feature source is open.

public static void CheckFeatureSourceIsOpen(bool isOpen)

Parameters

isOpen bool
The is open.

Returns

void

CheckParameterIsNotNullOrEmpty(string, string)

Performs check parameter is not null or empty.

public static void CheckParameterIsNotNullOrEmpty(string value, string parameterName)

Parameters

value string
The value to serialize or write.

parameterName string
The parameter name.

Returns

void

CheckIsEmptyOrNull(IEnumerable<string>)

Performs check is empty or null.

public static bool CheckIsEmptyOrNull(IEnumerable<string> values)

Parameters

values IEnumerable<string>
The values.

Returns

bool
True if the condition is met; otherwise, false.

CheckFeatureSourceCanExecuteSqlQuery(bool)

Performs check feature source can execute sql query.

public static void CheckFeatureSourceCanExecuteSqlQuery(bool canExecuteSqlQuery)

Parameters

canExecuteSqlQuery bool
The can execute sql query.

Returns

void

CheckFeatureIdAndGeometryColumn(string, string, string, string)

Performs check feature ID and geometry column.

public static void CheckFeatureIdAndGeometryColumn(string connectionString, string tableName, string featureIdColumn, string geometryColumnName)

Parameters

connectionString string
The connection string.

tableName string
The table name.

featureIdColumn string
The feature ID column.

geometryColumnName string
The geometry column name.

Returns

void