using Tapeti.Config;
namespace Tapeti.DataAnnotations
{
///
/// Extends ITapetiConfigBuilder to enable DataAnnotations.
///
public static class ConfigExtensions
{
///
/// Enables the DataAnnotations validation middleware.
///
///
public static ITapetiConfigBuilder WithDataAnnotations(this ITapetiConfigBuilder config)
{
config.Use(new DataAnnotationsExtension());
return config;
}
}
}