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
serviceIEntityValidationService<T, TInterface>The IEntityValidationService instance.
primaryKeysIPrimaryKeyThe primary keys to validate.
Type Parameters
TThe type of the entity.
TInterfaceThe interface type of the entity.
Exceptions
- Exception
Thrown if the primary keys are not valid.