Handle type mismatch for custom methods

This commit is contained in:
Biarity 2018-02-11 13:36:34 +10:00
parent 3068c476e1
commit 9d0ef79595

View File

@ -294,6 +294,7 @@ namespace Sieve.Services
result = customMethod.Invoke(parent, parameters)
as IQueryable<TEntity>;
}
catch (ArgumentException) { } // name matched with custom emthod for a differnt type
catch (TargetParameterCountException)
{
if (optionalParameters != null)