I am not sure what your ValidationExt object looks like but you are trying to call the extension method and for the same, you need object of type IRuleBuilderOptions and the method doesn't accept any parameter.
So it should be just myValidationExt.onlyPositive().// assuming myValidationExt is of type IRuleBuilderOptions.
Tapan PatelPosted Oct 10, 2017, 9:25 AM