Table of Contents

Method IsPrimaryKeysValidAndThrowException

Namespace
Innova.Data.Entity
Assembly
Innova.Data.dll

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 IPrimaryKey

The 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.