44 references to Rule
System.Data (44)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
620
static internal ArgumentOutOfRangeException InvalidRule(
Rule
value) {
631
return InvalidEnumerationValue(typeof(
Rule
), (int) value);
fx\src\data\System\Data\ConstraintConverter.cs (2)
57
typeof(string[]), typeof(AcceptRejectRule), typeof(
Rule
), typeof(
Rule
) } );
fx\src\data\System\Data\DataTable.cs (2)
594
fk.UpdateRule = (
Rule
) rules[1];
595
fk.DeleteRule = (
Rule
) rules[2];
fx\src\data\System\Data\ForeignKeyConstraint.cs (26)
27
internal const
Rule
Rule_Default =
Rule
.Cascade;
31
internal
Rule
deleteRule = Rule_Default;
32
internal
Rule
updateRule = Rule_Default;
92
AcceptRejectRule acceptRejectRule,
Rule
deleteRule,
Rule
updateRule) {
107
string[] childColumnNames, AcceptRejectRule acceptRejectRule,
Rule
deleteRule,
Rule
updateRule) {
273
case
Rule
.None: {
287
case
Rule
.Cascade: {
303
case
Rule
.SetNull: {
319
case
Rule
.SetDefault: {
388
case
Rule
.None: {
400
case
Rule
.Cascade: {
414
case
Rule
.SetNull: {
429
case
Rule
.SetDefault: {
737
public virtual
Rule
DeleteRule {
744
case
Rule
.None:
745
case
Rule
.Cascade:
746
case
Rule
.SetNull:
747
case
Rule
.SetDefault:
846
public virtual
Rule
UpdateRule {
853
case
Rule
.None:
854
case
Rule
.Cascade:
855
case
Rule
.SetNull:
856
case
Rule
.SetDefault:
fx\src\data\System\Data\xmlsaver.cs (7)
1318
internal static string TranslateRule(
Rule
rule ) {
1320
case
Rule
.Cascade: return "Cascade";
1321
case
Rule
.None: return "None";
1322
case
Rule
.SetNull: return "SetNull";
1323
case
Rule
.SetDefault: return "SetDefault";
1456
if (fk.DeleteRule !=
Rule
.Cascade)
1458
if (fk.DeleteRule !=
Rule
.Cascade)
fx\src\data\System\Data\XMLSchema.cs (5)
1069
internal static
Rule
TranslateRule( string strRule ) {
1071
return
Rule
.Cascade;
1073
return
Rule
.None;
1075
return
Rule
.SetDefault;
1077
return
Rule
.SetNull;