.NET Core Web API三层构建
一、创建项目ASP .NET Core Web API
二、添加类库选择.NET Core类库
三、构建三层
需要进行配置 原样输出 跨域,原样输出需要添加NuGet拓展包+引用
NuGet拓展包:Microsoft.AspNetCore.Mvc.NewtonsoftJson
引用: using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
一、创建项目ASP .NET Core Web API
二、添加类库选择.NET Core类库
三、构建三层
需要进行配置 原样输出 跨域,原样输出需要添加NuGet拓展包+引用
NuGet拓展包:Microsoft.AspNetCore.Mvc.NewtonsoftJson
引用: using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;