37 references to KeyRestrictionBehavior
netstandard (1)
netstandard.cs (1)
552
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
KeyRestrictionBehavior
))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
118
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
KeyRestrictionBehavior
))]
System.Data.Common (4)
System\Data\Common\AdapterUtil.Common.cs (4)
129
internal static ArgumentOutOfRangeException InvalidKeyRestrictionBehavior(
KeyRestrictionBehavior
value)
134
case
KeyRestrictionBehavior
.PreventUsage:
135
case
KeyRestrictionBehavior
.AllowOnly:
140
return InvalidEnumerationValue(typeof(
KeyRestrictionBehavior
), (int)value);
System.Data.Odbc (25)
Common\System\Data\Common\AdapterUtil.Odbc.cs (4)
141
internal static ArgumentOutOfRangeException InvalidKeyRestrictionBehavior(
KeyRestrictionBehavior
value)
146
case
KeyRestrictionBehavior
.PreventUsage:
147
case
KeyRestrictionBehavior
.AllowOnly:
152
return InvalidEnumerationValue(typeof(
KeyRestrictionBehavior
), (int)value);
Common\System\Data\Common\DBConnectionString.cs (21)
41
private readonly
KeyRestrictionBehavior
_behavior;
51
internal DBConnectionString(string value, string restrictions,
KeyRestrictionBehavior
behavior, Dictionary<string, string> synonyms, bool useOdbcRules)
59
: this(connectionOptions, null,
KeyRestrictionBehavior
.AllowOnly, null, true)
65
private DBConnectionString(DbConnectionOptions connectionOptions, string? restrictions,
KeyRestrictionBehavior
behavior, Dictionary<string, string>? synonyms, bool mustCloneDictionary)
70
case
KeyRestrictionBehavior
.PreventUsage:
71
case
KeyRestrictionBehavior
.AllowOnly:
120
private DBConnectionString(DBConnectionString connectionString, string[]? restrictionValues,
KeyRestrictionBehavior
behavior)
135
internal
KeyRestrictionBehavior
Behavior
199
KeyRestrictionBehavior
behavior = _behavior;
205
behavior =
KeyRestrictionBehavior
.AllowOnly;
209
behavior =
KeyRestrictionBehavior
.AllowOnly;
211
if (
KeyRestrictionBehavior
.AllowOnly == entry._behavior)
249
else if (
KeyRestrictionBehavior
.PreventUsage == _behavior)
302
if (componentSet._behavior ==
KeyRestrictionBehavior
.AllowOnly)
304
if (combinedSet._behavior ==
KeyRestrictionBehavior
.AllowOnly)
311
else if (combinedSet._behavior ==
KeyRestrictionBehavior
.PreventUsage)
321
else if (componentSet._behavior ==
KeyRestrictionBehavior
.PreventUsage)
323
if (combinedSet._behavior ==
KeyRestrictionBehavior
.AllowOnly)
330
else if (combinedSet._behavior ==
KeyRestrictionBehavior
.PreventUsage)
362
case
KeyRestrictionBehavior
.AllowOnly:
373
case
KeyRestrictionBehavior
.PreventUsage:
System.Security.Permissions (6)
System\Data\Common\DBDataPermission.cs (1)
20
public virtual void Add(string connectionString, string restrictions,
KeyRestrictionBehavior
behavior) { }
System\Data\Common\DBDataPermissionAttribute.cs (1)
18
public
KeyRestrictionBehavior
KeyRestrictionBehavior { get; set; }
System\Data\Odbc\OdbcPermission.cs (1)
18
public override void Add(string connectionString, string restrictions,
KeyRestrictionBehavior
behavior) { }
System\Data\OracleClient\OraclePermission.cs (1)
16
public void Add(string connectionString, string restrictions,
KeyRestrictionBehavior
behavior) { }
System\Data\OracleClient\OraclePermissionAttribute.cs (1)
18
public
KeyRestrictionBehavior
KeyRestrictionBehavior { get; set; }
System\Data\SqlClient\SqlClientPermission.cs (1)
17
public override void Add(string connectionString, string restrictions,
KeyRestrictionBehavior
behavior) { }