Class Helpers
A few helper methods for validation.
Inherited Members
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public static class Helpers
Methods
IsValid(IEntityCollection)
Returns true if the specified entity collection is valid under the default rules.
Declaration
public static bool IsValid(this IEntityCollection entities)
Parameters
Type | Name | Description |
---|---|---|
IEntityCollection | entities | The entities. |
Returns
Type | Description |
---|---|
bool |
|
Validate(IEntityCollection)
Validates the collection of entities using the default rules.
Declaration
public static IRules Validate(this IEntityCollection entities)
Parameters
Type | Name | Description |
---|---|---|
IEntityCollection | entities | The entities. |
Returns
Type | Description |
---|---|
IRules | The rules used to validate the collection. |
Validate(IEntityCollection, IRules)
Validates the collection of entities using the specified rules.
Declaration
public static IRules Validate(this IEntityCollection entities, IRules rules)
Parameters
Type | Name | Description |
---|---|---|
IEntityCollection | entities | The entities. |
IRules | rules | The rules. |
Returns
Type | Description |
---|---|
IRules | The rules passed by the |