Table of Contents

Method CanThrowWarningIfNot

Namespace
Innova.Data.Security
Assembly
Innova.Data.dll

CanThrowWarningIfNot<T>(IEntitySecurity<T>, Operation, T)

Throws a security warning if the specified entity security does not allow the specified operation on the given entity.

public static void CanThrowWarningIfNot<T>(this IEntitySecurity<T> entitySecurity, Operation operation, T entity = null) where T : class

Parameters

entitySecurity IEntitySecurity<T>

The entity security instance.

operation Operation

The operation to check.

entity T

The entity to check.

Type Parameters

T

The type of the entity.

CanThrowWarningIfNot<T>(IEntitySecurity<T>, Operation, IPrimaryKey)

Throws a security warning if the specified entity security does not allow the specified operation on the entity with the specified primary keys.

public static void CanThrowWarningIfNot<T>(this IEntitySecurity<T> entitySecurity, Operation operation, IPrimaryKey keys) where T : class

Parameters

entitySecurity IEntitySecurity<T>

The entity security instance.

operation Operation

The operation to check.

keys IPrimaryKey

The primary keys of the entity.

Type Parameters

T

The type of the entity.