Class ControllerBuilderDataAnnotationsExtensions
Contains ModelStateDictionary extension methods for IControllerBuilder<TController>.
Inheritance
System.Object
ControllerBuilderDataAnnotationsExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.DataAnnotations.dll
Syntax
public static class ControllerBuilderDataAnnotationsExtensions
Methods
| Improve this Doc View SourceWithoutValidation<TController>(IControllerBuilder<TController>)
Disables ModelStateDictionary validation for the action call.
Declaration
public static IAndControllerBuilder<TController> WithoutValidation<TController>(this IControllerBuilder<TController> controllerBuilder)where TController : class
Parameters
Type | Name | Description |
---|---|---|
IControllerBuilder<TController> | controllerBuilder | Instance of IControllerBuilder<TController> type. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Controllers.IAndControllerBuilder<TController> | The same IControllerBuilder<TController>. |
Type Parameters
Name | Description |
---|---|
TController | Class representing ASP.NET Core MVC controller. |