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