|
23 | 23 | using System.Text; |
24 | 24 | using System.Collections.Generic; |
25 | 25 | using System.Diagnostics; |
26 | | -#if !NETSTANDARD1_6 && !NETSTANDARD2_0 |
27 | | -using System.Runtime.Remoting.Messaging; |
28 | | -#endif |
29 | 26 |
|
30 | 27 | using FirebirdSql.Data.Common; |
31 | 28 |
|
@@ -465,17 +462,6 @@ public override int ExecuteNonQuery() |
465 | 462 |
|
466 | 463 | return RecordsAffected; |
467 | 464 | } |
468 | | -#if !NETSTANDARD1_6 && !NETSTANDARD2_0 |
469 | | - public IAsyncResult BeginExecuteNonQuery(AsyncCallback callback, object objectState) |
470 | | - { |
471 | | - // BeginInvoke might be slow, but the query processing will make this irrelevant |
472 | | - return ((Func<int>)ExecuteNonQuery).BeginInvoke(callback, objectState); |
473 | | - } |
474 | | - public int EndExecuteNonQuery(IAsyncResult asyncResult) |
475 | | - { |
476 | | - return ((Func<int>)(asyncResult as AsyncResult).AsyncDelegate).EndInvoke(asyncResult); |
477 | | - } |
478 | | -#endif |
479 | 465 |
|
480 | 466 | public new FbDataReader ExecuteReader() |
481 | 467 | { |
@@ -504,29 +490,6 @@ public int EndExecuteNonQuery(IAsyncResult asyncResult) |
504 | 490 |
|
505 | 491 | return _activeReader; |
506 | 492 | } |
507 | | -#if !NETSTANDARD1_6 && !NETSTANDARD2_0 |
508 | | - public IAsyncResult BeginExecuteReader(AsyncCallback callback, object objectState) |
509 | | - { |
510 | | - // BeginInvoke might be slow, but the query processing will make this irrelevant |
511 | | - return ((Func<FbDataReader>)ExecuteReader).BeginInvoke(callback, objectState); |
512 | | - } |
513 | | - public IAsyncResult BeginExecuteReader(CommandBehavior behavior, AsyncCallback callback, object objectState) |
514 | | - { |
515 | | - // BeginInvoke might be slow, but the query processing will make this irrelevant |
516 | | - return ((Func<CommandBehavior, FbDataReader>)ExecuteReader).BeginInvoke(behavior, callback, objectState); |
517 | | - } |
518 | | - public FbDataReader EndExecuteReader(IAsyncResult asyncResult) |
519 | | - { |
520 | | - if ((asyncResult as AsyncResult).AsyncDelegate is Func<FbDataReader>) |
521 | | - { |
522 | | - return ((Func<FbDataReader>)(asyncResult as AsyncResult).AsyncDelegate).EndInvoke(asyncResult); |
523 | | - } |
524 | | - else |
525 | | - { |
526 | | - return ((Func<CommandBehavior, FbDataReader>)(asyncResult as AsyncResult).AsyncDelegate).EndInvoke(asyncResult); |
527 | | - } |
528 | | - } |
529 | | -#endif |
530 | 493 |
|
531 | 494 | public override object ExecuteScalar() |
532 | 495 | { |
@@ -572,17 +535,6 @@ public override object ExecuteScalar() |
572 | 535 |
|
573 | 536 | return val; |
574 | 537 | } |
575 | | -#if !NETSTANDARD1_6 && !NETSTANDARD2_0 |
576 | | - public IAsyncResult BeginExecuteScalar(AsyncCallback callback, object objectState) |
577 | | - { |
578 | | - // BeginInvoke might be slow, but the query processing will make this irrelevant |
579 | | - return ((Func<object>)ExecuteScalar).BeginInvoke(callback, objectState); |
580 | | - } |
581 | | - public object EndExecuteScalar(IAsyncResult asyncResult) |
582 | | - { |
583 | | - return ((Func<object>)(asyncResult as AsyncResult).AsyncDelegate).EndInvoke(asyncResult); |
584 | | - } |
585 | | -#endif |
586 | 538 |
|
587 | 539 | #endregion |
588 | 540 |
|
|
0 commit comments