@@ -64,7 +64,9 @@ static class EF6Methods {
6464 public static readonly MethodInfo CountAsyncMethod ;
6565 public static readonly MethodInfo ToListAsyncMethod ;
6666 static EF6Methods ( ) {
67+ #pragma warning disable DX0004 // known assembly and types
6768 var extensionsType = Type . GetType ( "System.Data.Entity.QueryableExtensions, EntityFramework" ) ;
69+ #pragma warning restore DX0004 // known assembly and types
6870 CountAsyncMethod = FindCountAsyncMethod ( extensionsType ) ;
6971 ToListAsyncMethod = FindToListAsyncMethod ( extensionsType ) ;
7072 }
@@ -74,7 +76,9 @@ static class EFCoreMethods {
7476 public static readonly MethodInfo CountAsyncMethod ;
7577 public static readonly MethodInfo ToListAsyncMethod ;
7678 static EFCoreMethods ( ) {
79+ #pragma warning disable DX0004 // known assembly and types
7780 var extensionsType = Type . GetType ( "Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions, Microsoft.EntityFrameworkCore" ) ;
81+ #pragma warning restore DX0004 // known assembly and types
7882 CountAsyncMethod = FindCountAsyncMethod ( extensionsType ) ;
7983 ToListAsyncMethod = FindToListAsyncMethod ( extensionsType ) ;
8084 }
@@ -84,7 +88,9 @@ static class NHMethods {
8488 public static readonly MethodInfo CountAsyncMethod ;
8589 public static readonly MethodInfo ToListAsyncMethod ;
8690 static NHMethods ( ) {
91+ #pragma warning disable DX0004 // known assembly and types
8792 var extensionsType = Type . GetType ( "NHibernate.Linq.LinqExtensionMethods, NHibernate" ) ;
93+ #pragma warning restore DX0004 // known assembly and types
8894 CountAsyncMethod = FindCountAsyncMethod ( extensionsType ) ;
8995 ToListAsyncMethod = FindToListAsyncMethod ( extensionsType ) ;
9096 }
@@ -95,7 +101,9 @@ static class XpoMethods {
95101 public static readonly MethodInfo ToArrayAsyncMethod ;
96102 static XpoMethods ( ) {
97103 var asm = Array . Find ( AppDomain . CurrentDomain . GetAssemblies ( ) , a => a . FullName . StartsWith ( "DevExpress.Xpo.v" ) ) ;
104+ #pragma warning disable DX0004 // known assembly and types
98105 var extensionsType = asm . GetType ( "DevExpress.Xpo.XPQueryExtensions" ) ;
106+ #pragma warning restore DX0004 // known assembly and types
99107 CountAsyncMethod = FindCountAsyncMethod ( extensionsType ) ;
100108 ToArrayAsyncMethod = FindToArrayAsyncMethod ( extensionsType ) ;
101109 }
0 commit comments