49 references to Rule
netstandard (1)
netstandard.cs (1)
566[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Rule))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
183[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Rule))]
System.Data.Common (47)
System\Data\Common\AdapterUtil.Common.cs (6)
192internal static ArgumentOutOfRangeException InvalidRule(Rule value) 197case Rule.None: 198case Rule.Cascade: 199case Rule.SetNull: 200case Rule.SetDefault: 205return InvalidEnumerationValue(typeof(Rule), (int)value);
System\Data\ConstraintConverter.cs (2)
51typeof(string[]), typeof(AcceptRejectRule), typeof(Rule), typeof(Rule) })!;
System\Data\DataTable.cs (2)
652fk.UpdateRule = (Rule)rules[1]; 653fk.DeleteRule = (Rule)rules[2];
System\Data\ForeignKeyConstraint.cs (26)
21internal const Rule Rule_Default = Rule.Cascade; 25internal Rule _deleteRule = Rule_Default; 26internal Rule _updateRule = Rule_Default; 77AcceptRejectRule acceptRejectRule, Rule deleteRule, Rule updateRule) 91string[] childColumnNames, AcceptRejectRule acceptRejectRule, Rule deleteRule, Rule updateRule) 276case Rule.None: 293case Rule.Cascade: 312case Rule.SetNull: 331case Rule.SetDefault: 421case Rule.None: 435case Rule.Cascade: 452case Rule.SetNull: 470case Rule.SetDefault: 831public virtual Rule DeleteRule 842case Rule.None: 843case Rule.Cascade: 844case Rule.SetNull: 845case Rule.SetDefault: 936public virtual Rule UpdateRule 947case Rule.None: 948case Rule.Cascade: 949case Rule.SetNull: 950case Rule.SetDefault:
System\Data\xmlsaver.cs (6)
1557internal static string TranslateRule(Rule rule) => 1560Rule.Cascade => "Cascade", 1561Rule.None => "None", 1562Rule.SetNull => "SetNull", 1563Rule.SetDefault => "SetDefault", 1710if (fk.DeleteRule != Rule.Cascade)
System\Data\XMLSchema.cs (5)
1264internal static Rule TranslateRule(string strRule) 1267return Rule.Cascade; 1269return Rule.None; 1271return Rule.SetDefault; 1273return Rule.SetNull;