在Startup.cs文件中的ConfigureServices()方法中添加如下代码即可 services.AddSwaggerGen(options => { options.SwaggerDoc("v1", new Info { Title = "Core API", Version = "v1" }); options.DocInclusionPredicate((docName, description) => true);…
一.Oracle --创建表 create table test ( id varchar2(200) primary key not null, sort number, name varchar(200) ) --字段加注释 comment on column test.id is 'id'; comment on column test.sort is '序号'; --表加注释 comment on table test is '测试表' 二.Mysql -…