Skip to content

SensitiveTablesAttribute class

namespace: Serenity.Data   assembly: Serenity.Net.Services

Declares tables of an assembly that hold sensitive or internal data, by their names or patterns, e.g. the tables of a module with a prefix: [assembly: SensitiveTables("acc_*", "aud_*")]. A pattern may have the wildcards * and ?, and a schema, e.g. "sales.Payments"; without one, it is a table in the default schema (dbo, public) or in a database without schemas. See ISensitiveTableRegistry, and SensitiveTableAttribute for the table of a row.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class SensitiveTablesAttribute : Attribute
parameter description
patterns The names or the patterns of the tables.

Public Members

name description
SensitiveTablesAttribute(…) Declares tables of an assembly that hold sensitive or internal data, by their names or patterns, e.g. the tables of a module with a prefix: [assembly: SensitiveTables("acc_*", "aud_*")]. A pattern may have the wildcards * and ?, and a schema, e.g. "sales.Payments"; without one, it is a table in the default schema (dbo, public) or in a database without schemas. See ISensitiveTableRegistry, and SensitiveTableAttribute for the table of a row.
Patterns { get; } Gets the names or the patterns of the tables.

See Also