Rule.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //------------------------------------------------------------------------------
  2. // <copyright file="Rule.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">amirhmy</owner>
  6. // <owner current="true" primary="false">markash</owner>
  7. // <owner current="false" primary="false">jasonzhu</owner>
  8. //------------------------------------------------------------------------------
  9. namespace System.Data {
  10. /// <devdoc>
  11. /// <para>Indicates the action that occurs when a <see cref='System.Data.ForeignKeyConstraint'/>
  12. /// is enforced.</para>
  13. /// </devdoc>
  14. public enum Rule {
  15. /// <devdoc>
  16. /// <para>
  17. /// No action occurs.
  18. /// </para>
  19. /// </devdoc>
  20. None = 0,
  21. /// <devdoc>
  22. /// <para>
  23. /// Changes are cascaded through the relationship.
  24. /// </para>
  25. /// </devdoc>
  26. Cascade = 1,
  27. /// <devdoc>
  28. /// <para>
  29. /// Null values are set in the rows affected by the deletion.
  30. /// </para>
  31. /// </devdoc>
  32. SetNull = 2,
  33. /// <devdoc>
  34. /// <para>
  35. /// Default values are set in the rows affected by the deletion.
  36. /// </para>
  37. /// </devdoc>
  38. SetDefault = 3
  39. }
  40. }