```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...
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...