<PackageReference Include="System.Security.Permissions" Version="5.0.0-rc.1.20451.14" />

DBDataPermissionAttribute

Associates a security action with a custom security attribute.
public bool AllowBlankPassword { get; set; }

Gets or sets a value indicating whether a blank password is allowed.

public string ConnectionString { get; set; }

Gets or sets a permitted connection string.

Identifies whether the list of connection string parameters identified by the KeyRestrictions property are the only connection string parameters allowed.

public string KeyRestrictions { get; set; }

Gets or sets connection string parameters that are allowed or disallowed.

Initializes a new instance of the DBDataPermissionAttribute.

Identifies whether the attribute should serialize the connection string.

Identifies whether the attribute should serialize the set of key restrictions.