Method CanThrowWarningIfNot
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
OperationThe operation to check.
entity
TThe 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
OperationThe operation to check.
keys
IPrimaryKeyThe primary keys of the entity.
Type Parameters
T
The type of the entity.