protected ConfigureSecurity ( ExecutionContext context ) : void | ||
context | ExecutionContext | |
Результат | void |
protected override void ConfigureSecurity(ExecutionContext context)
{
context.Assertions.AddCreate(TriggerName, DbObjectType.Trigger);
context.Assertions.AddReference(TableName, DbObjectType.Table);
context.Assertions.AddExecute(ProcedureName, ProcedureArguments);
context.Actions.AddResourceGrant(ProcedureName, DbObjectType.Routine, PrivilegeSets.RoutineAll);
}