@@ -64,9 +64,7 @@ static class EF6Methods {
6464 public static readonly MethodInfo CountAsyncMethod ;
6565 public static readonly MethodInfo ToListAsyncMethod ;
6666 static EF6Methods ( ) {
67- #pragma warning disable DX0004
6867 var extensionsType = Type . GetType ( "System.Data.Entity.QueryableExtensions, EntityFramework" ) ;
69- #pragma warning restore DX0004
7068 CountAsyncMethod = FindCountAsyncMethod ( extensionsType ) ;
7169 ToListAsyncMethod = FindToListAsyncMethod ( extensionsType ) ;
7270 }
@@ -76,9 +74,7 @@ static class EFCoreMethods {
7674 public static readonly MethodInfo CountAsyncMethod ;
7775 public static readonly MethodInfo ToListAsyncMethod ;
7876 static EFCoreMethods ( ) {
79- #pragma warning disable DX0004
8077 var extensionsType = Type . GetType ( "Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions, Microsoft.EntityFrameworkCore" ) ;
81- #pragma warning restore DX0004
8278 CountAsyncMethod = FindCountAsyncMethod ( extensionsType ) ;
8379 ToListAsyncMethod = FindToListAsyncMethod ( extensionsType ) ;
8480 }
@@ -88,9 +84,7 @@ static class NHMethods {
8884 public static readonly MethodInfo CountAsyncMethod ;
8985 public static readonly MethodInfo ToListAsyncMethod ;
9086 static NHMethods ( ) {
91- #pragma warning disable DX0004
9287 var extensionsType = Type . GetType ( "NHibernate.Linq.LinqExtensionMethods, NHibernate" ) ;
93- #pragma warning restore DX0004
9488 CountAsyncMethod = FindCountAsyncMethod ( extensionsType ) ;
9589 ToListAsyncMethod = FindToListAsyncMethod ( extensionsType ) ;
9690 }
@@ -101,9 +95,7 @@ static class XpoMethods {
10195 public static readonly MethodInfo ToArrayAsyncMethod ;
10296 static XpoMethods ( ) {
10397 var asm = Array . Find ( AppDomain . CurrentDomain . GetAssemblies ( ) , a => a . FullName . StartsWith ( "DevExpress.Xpo.v" ) ) ;
104- #pragma warning disable DX0004
10598 var extensionsType = asm . GetType ( "DevExpress.Xpo.XPQueryExtensions" ) ;
106- #pragma warning restore DX0004
10799 CountAsyncMethod = FindCountAsyncMethod ( extensionsType ) ;
108100 ToArrayAsyncMethod = FindToArrayAsyncMethod ( extensionsType ) ;
109101 }
0 commit comments