SqlCommand.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. using System.Collections;
  6. using System.Data;
  7. using System.Data.Common;
  8. namespace System.Data.SqlClient
  9. {
  10. partial class SqlCommand : IDbCommand, ICloneable, IDisposable
  11. {
  12. [MonoTODO]
  13. public bool NotificationAutoEnlist
  14. {
  15. get => Notification != null;
  16. set => throw new NotImplementedException();
  17. }
  18. [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)]
  19. public IAsyncResult BeginExecuteReader() =>
  20. BeginExecuteReader(CommandBehavior.Default, null, null);
  21. [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)]
  22. public IAsyncResult BeginExecuteReader(AsyncCallback callback, object stateObject) =>
  23. BeginExecuteReader(CommandBehavior.Default, callback, stateObject);
  24. [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)]
  25. public IAsyncResult BeginExecuteReader(AsyncCallback callback, object stateObject, CommandBehavior behavior) =>
  26. BeginExecuteReader(behavior, callback, stateObject);
  27. [System.Security.Permissions.HostProtectionAttribute(ExternalThreading=true)]
  28. public IAsyncResult BeginExecuteReader(CommandBehavior behavior) =>
  29. BeginExecuteReader(behavior, null, null);
  30. }
  31. }