kyy
7 天以前 4622f48ac4f89adfa48f7e79db857c198df14701
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using Gs.Toolbox.ApiCore.Common.Mvc;
using Microsoft.Extensions.DependencyInjection;
 
namespace Gs.Toolbox.ApiCore.Extensions;
 
public static class IServiceCollectionExtension
{
    public static void AddCustomConvention(this IServiceCollection services)
    {
        services.AddMvc(options =>
        {
            options.Conventions.Add(new CustomApplicationModelConvention());
        });
    }
}