38 references to KeyRestrictionBehavior
System.Data (38)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
538
static internal ArgumentOutOfRangeException InvalidKeyRestrictionBehavior(
KeyRestrictionBehavior
value) {
547
return InvalidEnumerationValue(typeof(
KeyRestrictionBehavior
), (int) value);
fx\src\data\System\Data\Common\DBConnectionString.cs (21)
52
readonly private
KeyRestrictionBehavior
_behavior;
60
internal DBConnectionString(string value, string restrictions,
KeyRestrictionBehavior
behavior, Hashtable synonyms, bool useOdbcRules)
68
: this(connectionOptions, (string)null,
KeyRestrictionBehavior
.AllowOnly, (Hashtable)null, true)
74
private DBConnectionString(DbConnectionOptions connectionOptions, string restrictions,
KeyRestrictionBehavior
behavior, Hashtable synonyms, bool mustCloneDictionary) { // used by DBDataPermission
77
case
KeyRestrictionBehavior
.PreventUsage:
78
case
KeyRestrictionBehavior
.AllowOnly:
123
private DBConnectionString(DBConnectionString connectionString, string[] restrictionValues,
KeyRestrictionBehavior
behavior) {
137
internal
KeyRestrictionBehavior
Behavior {
187
KeyRestrictionBehavior
behavior = _behavior;
192
behavior =
KeyRestrictionBehavior
.AllowOnly;
195
behavior =
KeyRestrictionBehavior
.AllowOnly;
197
if (
KeyRestrictionBehavior
.AllowOnly == entry._behavior) { // this PreventUsage and entry AllowOnly
226
else if (
KeyRestrictionBehavior
.PreventUsage == this._behavior) { // both PreventUsage
269
if (componentSet._behavior ==
KeyRestrictionBehavior
.AllowOnly) {
270
if (combinedSet._behavior ==
KeyRestrictionBehavior
.AllowOnly) {
276
else if (combinedSet._behavior ==
KeyRestrictionBehavior
.PreventUsage) {
284
else if (componentSet._behavior ==
KeyRestrictionBehavior
.PreventUsage) {
285
if (combinedSet._behavior ==
KeyRestrictionBehavior
.AllowOnly) {
291
else if (combinedSet._behavior ==
KeyRestrictionBehavior
.PreventUsage) {
317
case
KeyRestrictionBehavior
.AllowOnly:
326
case
KeyRestrictionBehavior
.PreventUsage:
fx\src\data\System\Data\Common\DBDataPermission.cs (5)
90
public virtual void Add(string connectionString, string restrictions,
KeyRestrictionBehavior
behavior) { // V1.0.5000
301
KeyRestrictionBehavior
behavior =
KeyRestrictionBehavior
.AllowOnly;
303
behavior = (
KeyRestrictionBehavior
) Enum.Parse(typeof(
KeyRestrictionBehavior
), behavr, true);
fx\src\data\System\Data\Common\DBDataPermissionAttribute.cs (4)
33
private
KeyRestrictionBehavior
_behavior;// = KeyRestrictionBehavior.AllowOnly;
57
public
KeyRestrictionBehavior
KeyRestrictionBehavior { // V1.0.5000, default AllowOnly
63
case
KeyRestrictionBehavior
.PreventUsage:
64
case
KeyRestrictionBehavior
.AllowOnly:
fx\src\data\System\Data\Odbc\OdbcPermission.cs (2)
42
base.Add(ADP.StrEmpty, ADP.StrEmpty,
KeyRestrictionBehavior
.AllowOnly);
46
public override void Add(string connectionString, string restrictions,
KeyRestrictionBehavior
behavior) {
fx\src\data\System\Data\OleDb\OleDbPermission.cs (1)
45
base.Add(ADP.StrEmpty, ADP.StrEmpty,
KeyRestrictionBehavior
.AllowOnly);
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (1)
194
p.Add(String.Empty, String.Empty,
KeyRestrictionBehavior
.AllowOnly);
fx\src\data\System\Data\SqlClient\SqlClientPermission.cs (2)
40
base.Add(ADP.StrEmpty, ADP.StrEmpty,
KeyRestrictionBehavior
.AllowOnly);
44
public override void Add(string connectionString, string restrictions,
KeyRestrictionBehavior
behavior) {