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
entitySecurityIEntitySecurity<T>The entity security instance.
operationOperationThe operation to check.
entityTThe entity to check.
Type Parameters
TThe 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
entitySecurityIEntitySecurity<T>The entity security instance.
operationOperationThe operation to check.
keysIPrimaryKeyThe primary keys of the entity.
Type Parameters
TThe type of the entity.