├── XXX.api ├── Startup.cs ├── appsettings.json ├── appsettings.Development.json ├── Properties │ └── launchSettings.json ├── BaseController.cs ├── Controllers │ ├── ErrorController.cs │ └── UserController.cs ├── Program.cs ├── MyExceptionFilter.cs └── XXX.api.csproj ├── apipub ├── XXX.Bo.dll ├── XXX.api.dll ├── XXX.api.exe ├── XXX.Common.dll ├── XXX.Models.dll ├── appsettings.json ├── Newtonsoft.Json.dll ├── Microsoft.OpenApi.dll ├── NuGet.Frameworks.dll ├── Newtonsoft.Json.Bson.dll ├── Microsoft.CodeAnalysis.dll ├── System.Runtime.Caching.dll ├── Microsoft.Data.SqlClient.dll ├── Microsoft.Identity.Client.dll ├── Microsoft.CodeAnalysis.Razor.dll ├── System.Composition.Hosting.dll ├── System.Composition.Runtime.dll ├── runtimes │ ├── win-x64 │ │ └── native │ │ │ └── sni.dll │ ├── win-x86 │ │ └── native │ │ │ └── sni.dll │ ├── win-arm64 │ │ └── native │ │ │ └── sni.dll │ ├── win │ │ └── lib │ │ │ ├── netcoreapp2.0 │ │ │ └── System.Runtime.Caching.dll │ │ │ ├── netcoreapp2.1 │ │ │ └── Microsoft.Data.SqlClient.dll │ │ │ └── netstandard2.0 │ │ │ └── System.Security.Cryptography.ProtectedData.dll │ └── unix │ │ └── lib │ │ ├── netcoreapp2.0 │ │ └── System.Runtime.Caching.dll │ │ └── netcoreapp2.1 │ │ └── Microsoft.Data.SqlClient.dll ├── Microsoft.AspNetCore.JsonPatch.dll ├── Microsoft.CodeAnalysis.CSharp.dll ├── Microsoft.EntityFrameworkCore.dll ├── Swashbuckle.AspNetCore.Swagger.dll ├── System.Composition.Convention.dll ├── System.Composition.TypedParts.dll ├── Microsoft.CodeAnalysis.Workspaces.dll ├── Swashbuckle.AspNetCore.SwaggerGen.dll ├── Swashbuckle.AspNetCore.SwaggerUI.dll ├── Microsoft.AspNetCore.Razor.Language.dll ├── System.Composition.AttributedModel.dll ├── cs │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── de │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── dotnet-aspnet-codegenerator-design.dll ├── es │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── fr │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── it │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── ja │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── ko │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── pl │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── ru │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── tr │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── Microsoft.DotNet.PlatformAbstractions.dll ├── Microsoft.Extensions.DependencyModel.dll ├── pt-BR │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll ├── Microsoft.CodeAnalysis.CSharp.Workspaces.dll ├── Microsoft.EntityFrameworkCore.Relational.dll ├── Microsoft.EntityFrameworkCore.SqlServer.dll ├── zh-Hans │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── zh-Hant │ ├── Microsoft.CodeAnalysis.resources.dll │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll │ └── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll ├── Microsoft.EntityFrameworkCore.Abstractions.dll ├── Microsoft.VisualStudio.Web.CodeGeneration.dll ├── System.Configuration.ConfigurationManager.dll ├── System.Security.Cryptography.ProtectedData.dll ├── Microsoft.VisualStudio.Web.CodeGenerators.Mvc.dll ├── Microsoft.VisualStudio.Web.CodeGeneration.Core.dll ├── Microsoft.VisualStudio.Web.CodeGeneration.Utils.dll ├── Microsoft.VisualStudio.Web.CodeGeneration.Contracts.dll ├── Microsoft.VisualStudio.Web.CodeGeneration.Templating.dll ├── Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.dll ├── appsettings.Development.json ├── XXX.api.runtimeconfig.json ├── web.config └── XXX.api.xml ├── XXX.Common ├── mm_reward_qrcode_1646372732791.png ├── XXX.Common.csproj ├── Md5Encrypt.cs ├── AppSettings.cs └── SignMgr.cs ├── XXX.Models ├── User │ ├── AddUserR.cs │ └── AddUserP.cs ├── RetModel.cs ├── XXX.Models.csproj ├── XXXEntities │ └── User.cs └── AppSetting.cs ├── README.md ├── XXX.Bo ├── XXXContext.cs ├── XXX.Bo.csproj └── UserBo.cs ├── .gitattributes ├── XXX.sln └── .gitignore /XXX.api/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/XXX.api/Startup.cs -------------------------------------------------------------------------------- /apipub/XXX.Bo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/XXX.Bo.dll -------------------------------------------------------------------------------- /apipub/XXX.api.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/XXX.api.dll -------------------------------------------------------------------------------- /apipub/XXX.api.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/XXX.api.exe -------------------------------------------------------------------------------- /apipub/XXX.Common.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/XXX.Common.dll -------------------------------------------------------------------------------- /apipub/XXX.Models.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/XXX.Models.dll -------------------------------------------------------------------------------- /XXX.api/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/XXX.api/appsettings.json -------------------------------------------------------------------------------- /apipub/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/appsettings.json -------------------------------------------------------------------------------- /apipub/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /apipub/Microsoft.OpenApi.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.OpenApi.dll -------------------------------------------------------------------------------- /apipub/NuGet.Frameworks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/NuGet.Frameworks.dll -------------------------------------------------------------------------------- /apipub/Newtonsoft.Json.Bson.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Newtonsoft.Json.Bson.dll -------------------------------------------------------------------------------- /apipub/Microsoft.CodeAnalysis.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.CodeAnalysis.dll -------------------------------------------------------------------------------- /apipub/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /apipub/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /apipub/Microsoft.Identity.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.Identity.Client.dll -------------------------------------------------------------------------------- /apipub/Microsoft.CodeAnalysis.Razor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.CodeAnalysis.Razor.dll -------------------------------------------------------------------------------- /apipub/System.Composition.Hosting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/System.Composition.Hosting.dll -------------------------------------------------------------------------------- /apipub/System.Composition.Runtime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/System.Composition.Runtime.dll -------------------------------------------------------------------------------- /apipub/runtimes/win-x64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/runtimes/win-x64/native/sni.dll -------------------------------------------------------------------------------- /apipub/runtimes/win-x86/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/runtimes/win-x86/native/sni.dll -------------------------------------------------------------------------------- /apipub/Microsoft.AspNetCore.JsonPatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.AspNetCore.JsonPatch.dll -------------------------------------------------------------------------------- /apipub/Microsoft.CodeAnalysis.CSharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.CodeAnalysis.CSharp.dll -------------------------------------------------------------------------------- /apipub/Microsoft.EntityFrameworkCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.EntityFrameworkCore.dll -------------------------------------------------------------------------------- /apipub/Swashbuckle.AspNetCore.Swagger.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Swashbuckle.AspNetCore.Swagger.dll -------------------------------------------------------------------------------- /apipub/System.Composition.Convention.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/System.Composition.Convention.dll -------------------------------------------------------------------------------- /apipub/System.Composition.TypedParts.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/System.Composition.TypedParts.dll -------------------------------------------------------------------------------- /apipub/runtimes/win-arm64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/runtimes/win-arm64/native/sni.dll -------------------------------------------------------------------------------- /apipub/Microsoft.CodeAnalysis.Workspaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.CodeAnalysis.Workspaces.dll -------------------------------------------------------------------------------- /apipub/Swashbuckle.AspNetCore.SwaggerGen.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Swashbuckle.AspNetCore.SwaggerGen.dll -------------------------------------------------------------------------------- /apipub/Swashbuckle.AspNetCore.SwaggerUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Swashbuckle.AspNetCore.SwaggerUI.dll -------------------------------------------------------------------------------- /XXX.Common/mm_reward_qrcode_1646372732791.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/XXX.Common/mm_reward_qrcode_1646372732791.png -------------------------------------------------------------------------------- /apipub/Microsoft.AspNetCore.Razor.Language.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.AspNetCore.Razor.Language.dll -------------------------------------------------------------------------------- /apipub/System.Composition.AttributedModel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/System.Composition.AttributedModel.dll -------------------------------------------------------------------------------- /apipub/cs/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/cs/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/de/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/de/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/dotnet-aspnet-codegenerator-design.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/dotnet-aspnet-codegenerator-design.dll -------------------------------------------------------------------------------- /apipub/es/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/es/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/fr/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/fr/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/it/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/it/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/ja/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ja/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/ko/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ko/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/pl/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/pl/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/ru/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ru/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/tr/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/tr/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/Microsoft.DotNet.PlatformAbstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.DotNet.PlatformAbstractions.dll -------------------------------------------------------------------------------- /apipub/Microsoft.Extensions.DependencyModel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.Extensions.DependencyModel.dll -------------------------------------------------------------------------------- /apipub/pt-BR/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/pt-BR/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll -------------------------------------------------------------------------------- /apipub/Microsoft.CodeAnalysis.CSharp.Workspaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.CodeAnalysis.CSharp.Workspaces.dll -------------------------------------------------------------------------------- /apipub/Microsoft.EntityFrameworkCore.Relational.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.EntityFrameworkCore.Relational.dll -------------------------------------------------------------------------------- /apipub/Microsoft.EntityFrameworkCore.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.EntityFrameworkCore.SqlServer.dll -------------------------------------------------------------------------------- /apipub/zh-Hans/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/zh-Hans/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/zh-Hant/Microsoft.CodeAnalysis.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/zh-Hant/Microsoft.CodeAnalysis.resources.dll -------------------------------------------------------------------------------- /apipub/Microsoft.EntityFrameworkCore.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.EntityFrameworkCore.Abstractions.dll -------------------------------------------------------------------------------- /apipub/Microsoft.VisualStudio.Web.CodeGeneration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.VisualStudio.Web.CodeGeneration.dll -------------------------------------------------------------------------------- /apipub/System.Configuration.ConfigurationManager.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/System.Configuration.ConfigurationManager.dll -------------------------------------------------------------------------------- /apipub/System.Security.Cryptography.ProtectedData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/System.Security.Cryptography.ProtectedData.dll -------------------------------------------------------------------------------- /apipub/cs/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/cs/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/de/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/de/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/es/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/es/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/fr/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/fr/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/it/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/it/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/ja/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ja/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/ko/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ko/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/pl/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/pl/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/ru/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ru/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/tr/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/tr/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/Microsoft.VisualStudio.Web.CodeGenerators.Mvc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.VisualStudio.Web.CodeGenerators.Mvc.dll -------------------------------------------------------------------------------- /apipub/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/Microsoft.VisualStudio.Web.CodeGeneration.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.VisualStudio.Web.CodeGeneration.Core.dll -------------------------------------------------------------------------------- /apipub/Microsoft.VisualStudio.Web.CodeGeneration.Utils.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.VisualStudio.Web.CodeGeneration.Utils.dll -------------------------------------------------------------------------------- /apipub/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/de/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/de/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/es/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/es/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/it/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/it/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll -------------------------------------------------------------------------------- /apipub/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/Microsoft.VisualStudio.Web.CodeGeneration.Contracts.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.VisualStudio.Web.CodeGeneration.Contracts.dll -------------------------------------------------------------------------------- /apipub/Microsoft.VisualStudio.Web.CodeGeneration.Templating.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.VisualStudio.Web.CodeGeneration.Templating.dll -------------------------------------------------------------------------------- /apipub/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/runtimes/win/lib/netcoreapp2.0/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/runtimes/win/lib/netcoreapp2.0/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /apipub/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/runtimes/unix/lib/netcoreapp2.0/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/runtimes/unix/lib/netcoreapp2.0/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /apipub/runtimes/win/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/runtimes/win/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /apipub/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/runtimes/unix/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/runtimes/unix/lib/netcoreapp2.1/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /apipub/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll -------------------------------------------------------------------------------- /apipub/Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.dll -------------------------------------------------------------------------------- /apipub/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /XXX.api/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /apipub/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaxiaoqian/NetCore3.0-WebApi/HEAD/apipub/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll -------------------------------------------------------------------------------- /apipub/XXX.api.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp3.0", 4 | "framework": { 5 | "name": "Microsoft.AspNetCore.App", 6 | "version": "3.0.0" 7 | }, 8 | "configProperties": { 9 | "System.GC.Server": true 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /XXX.Models/User/AddUserR.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace XXX.Models.User 6 | { 7 | public class AddUserR 8 | { 9 | public int code { get; set; } 10 | public string message { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /XXX.Common/XXX.Common.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /XXX.Models/RetModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace XXX.Models 6 | { 7 | /// 8 | /// 常用返回值模版 9 | /// 10 | public class RetModel 11 | { 12 | public int code { get; set; } 13 | public string message { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /XXX.Models/XXX.Models.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /XXX.api/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "XXX.api": { 4 | "commandName": "Project", 5 | "launchBrowser": true, 6 | "launchUrl": "swagger", 7 | "applicationUrl": "http://localhost:5000/", 8 | "environmentVariables": { 9 | //Development、Staging 和 Production。如果不设置默认Production 10 | "ASPNETCORE_ENVIRONMENT": "Production" 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /XXX.Models/User/AddUserP.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace XXX.Models.User 6 | { 7 | public class AddUserP 8 | { 9 | public string phone { get; set; } 10 | public string password { get; set; } 11 | public string nickName { get; set; } 12 | public int state { get; set; } 13 | public string sign { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /XXX.Models/XXXEntities/User.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace XXX.Models.XXXEntities 4 | { 5 | public partial class User 6 | { 7 | public int Id { get; set; } 8 | public string Phone { get; set; } 9 | public string Password { get; set; } 10 | public string MsgCode { get; set; } 11 | public DateTime? RegTime { get; set; } 12 | public string NickName { get; set; } 13 | public int? State { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /XXX.api/BaseController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc; 6 | using Microsoft.Extensions.Options; 7 | 8 | namespace XXX.api 9 | { 10 | /// 11 | /// 自定义路由模版 12 | /// 用于解决swagger文档No operations defined in spec!问题 13 | /// 14 | [Route("api/[controller]/[action]")] 15 | [ApiController] 16 | public class BaseController : ControllerBase 17 | { 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /XXX.Models/AppSetting.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace XXX.Models 6 | { 7 | /// 8 | /// AppSettings参数 9 | /// 10 | public class AppSetting 11 | { 12 | /// 13 | /// 数据库连接字符串 14 | /// 15 | public static string xxxDB { get; set; } 16 | /// 17 | /// 接口是否需要签名验证,true需要,false不需要 18 | /// 19 | public static string IsSign { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /apipub/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## WebApi介绍 2 | 3 | 这是一个适合初学者学习的教程 4 | ![image](https://github.com/xiaxiaoqian/NetCore3.0-WebApi/blob/master/XXX.Common/mm_reward_qrcode_1646372732791.png) 5 | 6 | ## 开发工具: 7 | vs2019 8 | .NetCore3.0 9 | 10 | ## 详细教程 11 | 12 | [教程1 简单的webapi接口](https://www.jianshu.com/p/364f1842cae5) 13 | 14 | [教程2 通过EF访问数据库](https://www.jianshu.com/p/0f7141ba03f6) 15 | 16 | [教程3 增加接口文档](https://www.jianshu.com/p/c765d29d1bb5) 17 | 18 | [教程4 读取appsettings.json配置类](https://www.jianshu.com/p/5c28f2f0f9c1) 19 | 20 | [教程5 增加接口参数签名验证](https://www.jianshu.com/p/8edf3ec9a4d3) 21 | 22 | [教程6 增加接口异常处理模块](https://www.jianshu.com/p/2385c64835fc) 23 | -------------------------------------------------------------------------------- /XXX.api/Controllers/ErrorController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Http; 6 | using Microsoft.AspNetCore.Mvc; 7 | 8 | namespace XXX.api.Controllers 9 | { 10 | [ApiController] 11 | public class ErrorController : ControllerBase 12 | { 13 | [Route("/error")] 14 | [HttpGet] 15 | public IActionResult Get() 16 | { 17 | Models.RetModel r = new Models.RetModel(); 18 | r.code = 0; 19 | r.message = "接口开小差了"; 20 | 21 | return Ok(r); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /XXX.Common/Md5Encrypt.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace XXX.Common 6 | { 7 | /// 8 | /// MD5签名 9 | /// 10 | public class Md5Encrypt 11 | { 12 | public static string MD5(string str) 13 | { 14 | var md5 = new System.Security.Cryptography.MD5CryptoServiceProvider(); 15 | byte[] bytes = Encoding.UTF8.GetBytes(str); 16 | byte[] result = md5.ComputeHash(bytes); 17 | StringBuilder sb = new StringBuilder(); 18 | foreach (var b in result) 19 | { 20 | sb.Append(b.ToString("x2").ToLower()); 21 | } 22 | return sb.ToString(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /XXX.api/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Hosting; 6 | using Microsoft.Extensions.Configuration; 7 | using Microsoft.Extensions.Hosting; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace XXX.api 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /XXX.Bo/XXXContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Microsoft.EntityFrameworkCore; 5 | using XXX.Models.XXXEntities; 6 | 7 | namespace XXX.Bo 8 | { 9 | public class XXXContext:DbContext 10 | { 11 | public XXXContext() 12 | { 13 | } 14 | 15 | public XXXContext(DbContextOptions options) 16 | : base(options) 17 | { 18 | } 19 | 20 | public static string ConStr { get; set; } 21 | public virtual DbSet User { get; set; } 22 | 23 | protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) 24 | { 25 | if (!optionsBuilder.IsConfigured) 26 | { 27 | optionsBuilder.UseSqlServer(Common.AppSettings.GetAppSeting("xxxDB")); 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /XXX.Bo/XXX.Bo.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.0 5 | 6 | 7 | 8 | 9 | 10 | all 11 | runtime; build; native; contentfiles; analyzers; buildtransitive 12 | 13 | 14 | 15 | all 16 | runtime; build; native; contentfiles; analyzers; buildtransitive 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /XXX.Common/AppSettings.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.Configuration; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace XXX.Common 7 | { 8 | public class AppSettings 9 | { 10 | private static IConfigurationSection appSection = null; 11 | /// 12 | /// 获取配置文件 13 | /// 14 | /// 15 | /// 16 | public static string GetAppSeting(string key) 17 | { 18 | if (appSection.GetSection(key)!=null) 19 | { 20 | return appSection.GetSection(key).Value; 21 | } 22 | else 23 | { 24 | return ""; 25 | } 26 | } 27 | /// 28 | /// 设置配置文件 29 | /// 30 | /// 31 | public static void SetAppSetting(IConfigurationSection section) 32 | { 33 | appSection = section; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /XXX.api/Controllers/UserController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Http; 6 | using Microsoft.AspNetCore.Mvc; 7 | 8 | namespace XXX.api.Controllers 9 | { 10 | /// 11 | /// 用户接口 12 | /// 13 | //[Route("api/[controller]/[action]")] 14 | //[ApiController] 15 | public class UserController : BaseController 16 | { 17 | /// 18 | /// 测试接口 19 | /// 20 | /// 21 | [HttpGet] 22 | public IActionResult Login() 23 | { 24 | return Ok("hello"); 25 | } 26 | /// 27 | /// 增加一个用户 28 | /// 29 | /// 30 | /// 31 | [HttpPost] 32 | public IActionResult AddUser([FromBody]Models.User.AddUserP model) 33 | { 34 | var r = Bo.UserBo.AddUser(model); 35 | return Ok(r); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /XXX.api/MyExceptionFilter.cs: -------------------------------------------------------------------------------- 1 | 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Http; 7 | using Microsoft.AspNetCore.Mvc; 8 | using Microsoft.AspNetCore.Mvc.Filters; 9 | 10 | namespace XXX.api 11 | { 12 | /// 13 | /// 自定义webapi异常处理 14 | /// 15 | public class MyExceptionFilter : IExceptionFilter 16 | { 17 | /// 18 | /// 发送异常时执行的代码 19 | /// 20 | /// 21 | public void OnException(ExceptionContext context) 22 | { 23 | Models.RetModel ret = new Models.RetModel(); 24 | ret.code = 0; 25 | ret.message = "接口开小差了"; 26 | string errRet= Newtonsoft.Json.JsonConvert.SerializeObject(ret); 27 | if (context.ExceptionHandled==false) 28 | { 29 | context.Result = new ContentResult 30 | { 31 | Content = errRet, 32 | StatusCode = StatusCodes.Status200OK, 33 | ContentType="application/json" 34 | }; 35 | } 36 | context.ExceptionHandled = true; 37 | } 38 | /// 39 | /// 异步发送异常时执行的代码 40 | /// 41 | /// 42 | /// 43 | public Task OnExceptionAsync(ExceptionContext context) 44 | { 45 | OnException(context); 46 | return Task.CompletedTask; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /XXX.api/XXX.api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.0 5 | 6 | 1701;1702;1591 7 | 8 | 9 | 10 | bin\Debug\XXX.api.xml 11 | bin\Debug\ 12 | 13 | 14 | 15 | 16 | 17 | all 18 | runtime; build; native; contentfiles; analyzers; buildtransitive 19 | 20 | 21 | all 22 | runtime; build; native; contentfiles; analyzers; buildtransitive 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /apipub/XXX.api.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | XXX.api 5 | 6 | 7 | 8 | 9 | 自定义路由模版 10 | 用于解决swagger文档No operations defined in spec!问题 11 | 12 | 13 | 14 | 15 | 用户接口 16 | 17 | 18 | 19 | 20 | 测试接口 21 | 22 | 23 | 24 | 25 | 26 | 增加一个用户 27 | 28 | 29 | 30 | 31 | 32 | 33 | 自定义webapi异常处理 34 | 35 | 36 | 37 | 38 | 发送异常时执行的代码 39 | 40 | 41 | 42 | 43 | 44 | 异步发送异常时执行的代码 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /XXX.Bo/UserBo.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | 3 | namespace XXX.Bo 4 | { 5 | public class UserBo 6 | { 7 | public static XXXContext db = new XXXContext(); 8 | /// 9 | /// 增加一个用户数据 10 | /// 11 | /// 12 | public static Models.User.AddUserR AddUser(Models.User.AddUserP model) 13 | { 14 | var r = new Models.User.AddUserR(); 15 | if (Common.SignMgr.ParamVerify(model)) 16 | { 17 | Models.XXXEntities.User userSearch = (from u in db.User where u.Phone == model.phone select u).FirstOrDefault(); 18 | if (userSearch == null) 19 | { 20 | Models.XXXEntities.User user = new Models.XXXEntities.User(); 21 | user.Phone = model.phone; 22 | user.Password = model.password; 23 | user.NickName = model.nickName; 24 | user.State = model.state; 25 | db.User.Add(user); 26 | int i = db.SaveChanges(); 27 | if (i > 0) 28 | { 29 | r.code = 1; 30 | r.message = "数据插入成功"; 31 | } 32 | else 33 | { 34 | r.code = 0; 35 | r.message = "数据插入成功"; 36 | } 37 | } 38 | else 39 | { 40 | r.code = 0; 41 | r.message = "手机号已经存在"; 42 | } 43 | } 44 | else 45 | { 46 | r.code = 0; 47 | r.message = "签名失败"; 48 | } 49 | return r; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /XXX.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.29326.143 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XXX.api", "XXX.api\XXX.api.csproj", "{0769A6C5-7CF6-4687-A6E2-8B8A087C1137}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XXX.Models", "XXX.Models\XXX.Models.csproj", "{844675B0-6327-4C64-B4AF-BD3AF75B4CCF}" 9 | EndProject 10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XXX.Bo", "XXX.Bo\XXX.Bo.csproj", "{A285BD64-51EC-411C-A1E7-B15C6F483C82}" 11 | EndProject 12 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XXX.Common", "XXX.Common\XXX.Common.csproj", "{27C20C66-77C7-4209-918E-40126D77B388}" 13 | EndProject 14 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{52B91FAF-132A-48F0-BBA8-8934ECA15852}" 15 | ProjectSection(SolutionItems) = preProject 16 | README.md = README.md 17 | EndProjectSection 18 | EndProject 19 | Global 20 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 21 | Debug|Any CPU = Debug|Any CPU 22 | Release|Any CPU = Release|Any CPU 23 | EndGlobalSection 24 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 25 | {0769A6C5-7CF6-4687-A6E2-8B8A087C1137}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 26 | {0769A6C5-7CF6-4687-A6E2-8B8A087C1137}.Debug|Any CPU.Build.0 = Debug|Any CPU 27 | {0769A6C5-7CF6-4687-A6E2-8B8A087C1137}.Release|Any CPU.ActiveCfg = Release|Any CPU 28 | {0769A6C5-7CF6-4687-A6E2-8B8A087C1137}.Release|Any CPU.Build.0 = Release|Any CPU 29 | {844675B0-6327-4C64-B4AF-BD3AF75B4CCF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 30 | {844675B0-6327-4C64-B4AF-BD3AF75B4CCF}.Debug|Any CPU.Build.0 = Debug|Any CPU 31 | {844675B0-6327-4C64-B4AF-BD3AF75B4CCF}.Release|Any CPU.ActiveCfg = Release|Any CPU 32 | {844675B0-6327-4C64-B4AF-BD3AF75B4CCF}.Release|Any CPU.Build.0 = Release|Any CPU 33 | {A285BD64-51EC-411C-A1E7-B15C6F483C82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 34 | {A285BD64-51EC-411C-A1E7-B15C6F483C82}.Debug|Any CPU.Build.0 = Debug|Any CPU 35 | {A285BD64-51EC-411C-A1E7-B15C6F483C82}.Release|Any CPU.ActiveCfg = Release|Any CPU 36 | {A285BD64-51EC-411C-A1E7-B15C6F483C82}.Release|Any CPU.Build.0 = Release|Any CPU 37 | {27C20C66-77C7-4209-918E-40126D77B388}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 38 | {27C20C66-77C7-4209-918E-40126D77B388}.Debug|Any CPU.Build.0 = Debug|Any CPU 39 | {27C20C66-77C7-4209-918E-40126D77B388}.Release|Any CPU.ActiveCfg = Release|Any CPU 40 | {27C20C66-77C7-4209-918E-40126D77B388}.Release|Any CPU.Build.0 = Release|Any CPU 41 | EndGlobalSection 42 | GlobalSection(SolutionProperties) = preSolution 43 | HideSolutionNode = FALSE 44 | EndGlobalSection 45 | GlobalSection(ExtensibilityGlobals) = postSolution 46 | SolutionGuid = {F8E70607-71A9-477E-A71C-C171DCA7DB3C} 47 | EndGlobalSection 48 | EndGlobal 49 | -------------------------------------------------------------------------------- /XXX.Common/SignMgr.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using XXX.Models; 6 | 7 | namespace XXX.Common 8 | { 9 | /// 10 | /// 签名管理 11 | /// 12 | public class SignMgr 13 | { 14 | /// 15 | /// 验证用户请求参数 16 | /// 签名生成的通用步骤如下: 17 | /// 第一步,设所有发送或者接收到的数据为集合M,将集合M内非空参数值的参数按照参数名ASCII码从小到大排序(字典序),使用URL键值对的格式(即key1=value1&key2=value2…)拼接成字符串stringA。 18 | /// 特别注意以下重要规则: 19 | /// ◆ 参数名ASCII码从小到大排序(字典序); 20 | /// ◆ 如果参数的值为空不参与签名; 21 | /// ◆ 参数名区分大小写; 22 | /// ◆ 验证调用返回或微信主动通知签名时,传送的sign参数不参与签名,将生成的签名与该sign值作校验。 23 | /// ◆ 微信接口可能增加字段,验证签名时必须支持增加的扩展字段 24 | /// 第二步,在stringA最后拼接上key得到stringSignTemp字符串,并对stringSignTemp进行MD5运算,再将得到的字符串所有字符转换为大写,得到sign值signValue。 25 | /// 例如 26 | /// stringA="key1=value1&key2=value2"; 27 | /// stringSignTemp=stringA+"&key=xxxxxxxxxxxxxxxx" 28 | /// sign=MD5(stringSignTemp).ToUper() 29 | /// 30 | /// 参数中需要包含sign字段,用来验证签名是否正确 31 | /// 32 | public static bool ParamVerify(Object p) 33 | { 34 | //获取是否签名字段 35 | string isSign = AppSettings.GetAppSeting("IsSign"); 36 | //获取MD5签名字段 37 | string secretKey = AppSettings.GetAppSeting("Md5Key"); 38 | if (isSign == "false") 39 | { 40 | return true; 41 | } 42 | try 43 | { 44 | Type t = p.GetType(); 45 | var propertys = t.GetProperties(); 46 | string sign = ""; 47 | string temp = ""; 48 | var orderPropertys = propertys.OrderBy(p => p.Name); //ASCII码从小到大排序(字典序) 49 | foreach (var item in orderPropertys) 50 | { 51 | string name = item.Name; 52 | object oValue = item.GetValue(p); 53 | string value = ""; 54 | if (oValue != null)//如果参数不为空则拼接参数 55 | { 56 | value = oValue.ToString(); 57 | //判断参数是否为sign,sign不参与签名 58 | if (name != "sign") 59 | { 60 | temp += name + "=" + value + "&"; 61 | } 62 | else 63 | { 64 | sign = value; 65 | } 66 | } 67 | } 68 | 69 | temp +="key=" +secretKey; 70 | string md = Md5Encrypt.MD5(temp); 71 | if (sign != "" && sign.ToUpper() == md.ToUpper()) 72 | { 73 | //签名验证成功 74 | return true; 75 | } 76 | else 77 | { 78 | //签名失败 79 | return false; 80 | } 81 | } 82 | catch (Exception ex) 83 | { 84 | //签名异常信息 85 | return false; 86 | } 87 | } 88 | 89 | 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | x64/ 22 | x86/ 23 | [Aa][Rr][Mm]/ 24 | [Aa][Rr][Mm]64/ 25 | bld/ 26 | [Bb]in/ 27 | [Oo]bj/ 28 | [Ll]og/ 29 | 30 | # Visual Studio 2015/2017 cache/options directory 31 | .vs/ 32 | # Uncomment if you have tasks that create the project's static files in wwwroot 33 | #wwwroot/ 34 | 35 | # Visual Studio 2017 auto generated files 36 | Generated\ Files/ 37 | 38 | # MSTest test Results 39 | [Tt]est[Rr]esult*/ 40 | [Bb]uild[Ll]og.* 41 | 42 | # NUNIT 43 | *.VisualState.xml 44 | TestResult.xml 45 | 46 | # Build Results of an ATL Project 47 | [Dd]ebugPS/ 48 | [Rr]eleasePS/ 49 | dlldata.c 50 | 51 | # Benchmark Results 52 | BenchmarkDotNet.Artifacts/ 53 | 54 | # .NET Core 55 | project.lock.json 56 | project.fragment.lock.json 57 | artifacts/ 58 | 59 | # StyleCop 60 | StyleCopReport.xml 61 | 62 | # Files built by Visual Studio 63 | *_i.c 64 | *_p.c 65 | *_h.h 66 | *.ilk 67 | *.meta 68 | *.obj 69 | *.iobj 70 | *.pch 71 | *.pdb 72 | *.ipdb 73 | *.pgc 74 | *.pgd 75 | *.rsp 76 | *.sbr 77 | *.tlb 78 | *.tli 79 | *.tlh 80 | *.tmp 81 | *.tmp_proj 82 | *_wpftmp.csproj 83 | *.log 84 | *.vspscc 85 | *.vssscc 86 | .builds 87 | *.pidb 88 | *.svclog 89 | *.scc 90 | 91 | # Chutzpah Test files 92 | _Chutzpah* 93 | 94 | # Visual C++ cache files 95 | ipch/ 96 | *.aps 97 | *.ncb 98 | *.opendb 99 | *.opensdf 100 | *.sdf 101 | *.cachefile 102 | *.VC.db 103 | *.VC.VC.opendb 104 | 105 | # Visual Studio profiler 106 | *.psess 107 | *.vsp 108 | *.vspx 109 | *.sap 110 | 111 | # Visual Studio Trace Files 112 | *.e2e 113 | 114 | # TFS 2012 Local Workspace 115 | $tf/ 116 | 117 | # Guidance Automation Toolkit 118 | *.gpState 119 | 120 | # ReSharper is a .NET coding add-in 121 | _ReSharper*/ 122 | *.[Rr]e[Ss]harper 123 | *.DotSettings.user 124 | 125 | # JustCode is a .NET coding add-in 126 | .JustCode 127 | 128 | # TeamCity is a build add-in 129 | _TeamCity* 130 | 131 | # DotCover is a Code Coverage Tool 132 | *.dotCover 133 | 134 | # AxoCover is a Code Coverage Tool 135 | .axoCover/* 136 | !.axoCover/settings.json 137 | 138 | # Visual Studio code coverage results 139 | *.coverage 140 | *.coveragexml 141 | 142 | # NCrunch 143 | _NCrunch_* 144 | .*crunch*.local.xml 145 | nCrunchTemp_* 146 | 147 | # MightyMoose 148 | *.mm.* 149 | AutoTest.Net/ 150 | 151 | # Web workbench (sass) 152 | .sass-cache/ 153 | 154 | # Installshield output folder 155 | [Ee]xpress/ 156 | 157 | # DocProject is a documentation generator add-in 158 | DocProject/buildhelp/ 159 | DocProject/Help/*.HxT 160 | DocProject/Help/*.HxC 161 | DocProject/Help/*.hhc 162 | DocProject/Help/*.hhk 163 | DocProject/Help/*.hhp 164 | DocProject/Help/Html2 165 | DocProject/Help/html 166 | 167 | # Click-Once directory 168 | publish/ 169 | 170 | # Publish Web Output 171 | *.[Pp]ublish.xml 172 | *.azurePubxml 173 | # Note: Comment the next line if you want to checkin your web deploy settings, 174 | # but database connection strings (with potential passwords) will be unencrypted 175 | *.pubxml 176 | *.publishproj 177 | 178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 179 | # checkin your Azure Web App publish settings, but sensitive information contained 180 | # in these scripts will be unencrypted 181 | PublishScripts/ 182 | 183 | # NuGet Packages 184 | *.nupkg 185 | # The packages folder can be ignored because of Package Restore 186 | **/[Pp]ackages/* 187 | # except build/, which is used as an MSBuild target. 188 | !**/[Pp]ackages/build/ 189 | # Uncomment if necessary however generally it will be regenerated when needed 190 | #!**/[Pp]ackages/repositories.config 191 | # NuGet v3's project.json files produces more ignorable files 192 | *.nuget.props 193 | *.nuget.targets 194 | 195 | # Microsoft Azure Build Output 196 | csx/ 197 | *.build.csdef 198 | 199 | # Microsoft Azure Emulator 200 | ecf/ 201 | rcf/ 202 | 203 | # Windows Store app package directories and files 204 | AppPackages/ 205 | BundleArtifacts/ 206 | Package.StoreAssociation.xml 207 | _pkginfo.txt 208 | *.appx 209 | 210 | # Visual Studio cache files 211 | # files ending in .cache can be ignored 212 | *.[Cc]ache 213 | # but keep track of directories ending in .cache 214 | !?*.[Cc]ache/ 215 | 216 | # Others 217 | ClientBin/ 218 | ~$* 219 | *~ 220 | *.dbmdl 221 | *.dbproj.schemaview 222 | *.jfm 223 | *.pfx 224 | *.publishsettings 225 | orleans.codegen.cs 226 | 227 | # Including strong name files can present a security risk 228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 229 | #*.snk 230 | 231 | # Since there are multiple workflows, uncomment next line to ignore bower_components 232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 233 | #bower_components/ 234 | 235 | # RIA/Silverlight projects 236 | Generated_Code/ 237 | 238 | # Backup & report files from converting an old project file 239 | # to a newer Visual Studio version. Backup files are not needed, 240 | # because we have git ;-) 241 | _UpgradeReport_Files/ 242 | Backup*/ 243 | UpgradeLog*.XML 244 | UpgradeLog*.htm 245 | ServiceFabricBackup/ 246 | *.rptproj.bak 247 | 248 | # SQL Server files 249 | *.mdf 250 | *.ldf 251 | *.ndf 252 | 253 | # Business Intelligence projects 254 | *.rdl.data 255 | *.bim.layout 256 | *.bim_*.settings 257 | *.rptproj.rsuser 258 | *- Backup*.rdl 259 | 260 | # Microsoft Fakes 261 | FakesAssemblies/ 262 | 263 | # GhostDoc plugin setting file 264 | *.GhostDoc.xml 265 | 266 | # Node.js Tools for Visual Studio 267 | .ntvs_analysis.dat 268 | node_modules/ 269 | 270 | # Visual Studio 6 build log 271 | *.plg 272 | 273 | # Visual Studio 6 workspace options file 274 | *.opt 275 | 276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 277 | *.vbw 278 | 279 | # Visual Studio LightSwitch build output 280 | **/*.HTMLClient/GeneratedArtifacts 281 | **/*.DesktopClient/GeneratedArtifacts 282 | **/*.DesktopClient/ModelManifest.xml 283 | **/*.Server/GeneratedArtifacts 284 | **/*.Server/ModelManifest.xml 285 | _Pvt_Extensions 286 | 287 | # Paket dependency manager 288 | .paket/paket.exe 289 | paket-files/ 290 | 291 | # FAKE - F# Make 292 | .fake/ 293 | 294 | # JetBrains Rider 295 | .idea/ 296 | *.sln.iml 297 | 298 | # CodeRush personal settings 299 | .cr/personal 300 | 301 | # Python Tools for Visual Studio (PTVS) 302 | __pycache__/ 303 | *.pyc 304 | 305 | # Cake - Uncomment if you are using it 306 | # tools/** 307 | # !tools/packages.config 308 | 309 | # Tabs Studio 310 | *.tss 311 | 312 | # Telerik's JustMock configuration file 313 | *.jmconfig 314 | 315 | # BizTalk build output 316 | *.btp.cs 317 | *.btm.cs 318 | *.odx.cs 319 | *.xsd.cs 320 | 321 | # OpenCover UI analysis results 322 | OpenCover/ 323 | 324 | # Azure Stream Analytics local run output 325 | ASALocalRun/ 326 | 327 | # MSBuild Binary and Structured Log 328 | *.binlog 329 | 330 | # NVidia Nsight GPU debugger configuration file 331 | *.nvuser 332 | 333 | # MFractors (Xamarin productivity tool) working folder 334 | .mfractor/ 335 | 336 | # Local History for Visual Studio 337 | .localhistory/ 338 | 339 | # BeatPulse healthcheck temp database 340 | healthchecksdb --------------------------------------------------------------------------------