Asp.Net Core API Swagger 显示注释内容

```csharp services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "YiKeAppService API", Version = "v1" }); //Api帮助文档 c.OrderActionsBy(o => o.RelativePath); try { var xmlPath = Path.Combine(AppContext.BaseDirectory, "YiKeAppService.xml"); c.IncludeXmlComments...

C# 2021-09-01 PM 624℃ 0条

ASP.Net Core EF Code First

Code First 方式创建数据库,命令行: ```bash dotnet ef migrations add InitialCreate dotnet ef database update ``` 使用Sqlite数据库时注意: ```csharp services.AddDbContext(options => { SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_sqlite3()); options.UseSqlite(Configuration.GetConnection...

C# 2021-08-17 AM 519℃ 0条

pip安装pycocotools等库时报gcc错误

缺少cython库原因,但是pip install cython 后依然会报错。 最后发现 apt-get install cython 后 再安装pycocotools等库就不会报错了。 注:如果找不到cython,可以先apt-get update更新一下。

Linux,Docker 2021-08-13 PM 530℃ 0条

Ubuntu安装docker以及nvidia-container-toolkit

**配置Docker源** - 更新源 $ sudo apt update - 启用HTTPS $ sudo apt install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common - 添加GPG key $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg ...

Linux,Docker 2021-08-12 AM 374℃ 0条

VSCode setting.js 配置vue文件格式化

```javascript "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "brace_style": "collapse-preserve-inline",             "wrap_line_length":160, //多少字符换行             "wrap_attributes": "auto",             "end_with_newline": true,             "semi": ...

默认分类 2021-07-29 AM 379℃ 0条