public static bool IsQueryable(this Type type) { return typeof(IQueryable<>).IsAssignableFromIgnoreGenericParameters(type); }