Method IsPrimaryKeysValidAndThrowException
IsPrimaryKeysValidAndThrowException<T, TInterface>(IEntityValidationService<T, TInterface>, IPrimaryKey)
Checks if the primary keys are valid and throws an exception if they are not.
public static void IsPrimaryKeysValidAndThrowException<T, TInterface>(this IEntityValidationService<T, TInterface> service, IPrimaryKey primaryKeys) where T : class where TInterface : class
Parameters
service
IEntityValidationService<T, TInterface>The IEntityValidationService instance.
primaryKeys
IPrimaryKeyThe primary keys to validate.
Type Parameters
T
The type of the entity.
TInterface
The interface type of the entity.
Exceptions
- Exception
Thrown if the primary keys are not valid.