Show / Hide Table of Contents

    Namespace XploRe.AspNetCore.Mvc.ModelBinding

    Classes

    ModelMetadataExtensions

    Provides a helper method for Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata to retrieve a property attribute of a given type.

    ModelStateDictionaryExtensions

    Adds an extension method to Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary objects to set a list of errors.

    TrimStringModelBinder

    Performs default simple type binding for String models with automatic trimming.

    TrimStringModelBinderProvider

    Automatically trims whitespace from String values that are bound by this Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider.

    Apply the NoTrimAttribute attribute to properties to exclude them from being bound by this provider.

    The model binder is activated by inserting a TrimStringModelBinderProvider instance into the ASP.NET MVC model binder providers list.

    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.