CommandBehavior.cs 1.1 KB

12345678910111213141516171819202122
  1. //------------------------------------------------------------------------------
  2. // <copyright file="CommandBehavior.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">markash</owner>
  6. // <owner current="true" primary="false">laled</owner>
  7. //------------------------------------------------------------------------------
  8. namespace System.Data {
  9. [Flags()]
  10. public enum CommandBehavior {
  11. Default = 0, // with data, multiple results, may affect database, MDAC 68240
  12. SingleResult = 1, // with data, force single result, may affect database
  13. SchemaOnly = 2, // column info, no data, no effect on database
  14. KeyInfo = 4, // column info + primary key information (if available)
  15. // UNDONE: SingleRow = 8 | SingleResult,
  16. SingleRow = 8, // data, hint single row and single result, may affect database - doesn't apply to child(chapter) results
  17. SequentialAccess = 0x10,
  18. CloseConnection = 0x20,
  19. }
  20. }