e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
|
|
//------------------------------------------------------------------------------
|
|
// <copyright file="Rule.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
// <owner current="true" primary="true">amirhmy</owner>
|
|
// <owner current="true" primary="false">markash</owner>
|
|
// <owner current="false" primary="false">jasonzhu</owner>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Data {
|
|
|
|
/// <devdoc>
|
|
/// <para>Indicates the action that occurs when a <see cref='System.Data.ForeignKeyConstraint'/>
|
|
/// is enforced.</para>
|
|
/// </devdoc>
|
|
public enum Rule {
|
|
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// No action occurs.
|
|
/// </para>
|
|
/// </devdoc>
|
|
None = 0,
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// Changes are cascaded through the relationship.
|
|
/// </para>
|
|
/// </devdoc>
|
|
Cascade = 1,
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// Null values are set in the rows affected by the deletion.
|
|
/// </para>
|
|
/// </devdoc>
|
|
SetNull = 2,
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// Default values are set in the rows affected by the deletion.
|
|
/// </para>
|
|
/// </devdoc>
|
|
SetDefault = 3
|
|
}
|
|
}
|