I am having a problem to use to object with Fluentvalidation

I can not use the object in my code. It says cannot convert from object to FluentValidation.IvalidationContext. namespace Northwind.Business.Utilities { public static class ValidationTool { public static void Validate(IValidator validator, object entity) { var result = validator.Validate(entity); if (result.Errors.Count > 0) { throw new ValidationException(result.Errors); } } } } >Solution : The reason why you… Read More I am having a problem to use to object with Fluentvalidation

Fluentvalidation on Enum Type fail by first Enum element (C#)

I’m using the fluentvalidation to validate user input before storing them. The Validation keep falling whenever the user selects the first element of the an Enum. Scenario: My ObjecktModel uses among other 2 Enum types as defined below: public enum Koerperschaft_enum { Privat_Person, Vereint, Firma, Stiftung } public enum MitgliedStatus_enum { Mitglied, Freispender } My… Read More Fluentvalidation on Enum Type fail by first Enum element (C#)