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