新框架PC后端代码(祈禧6月初版本)
南骏 池
4 天以前 72449a1b8699b65712e57fba8abce5a8240e9465
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());
        });
    }
}