```csharp services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "YiKeAppService API", Version = "v1" }); //Api帮助文档 c.OrderActionsBy(o => o.RelativePath); try { ...
Code First 方式创建数据库,命令行: ```bash dotnet ef migrations add InitialCreate dotnet ef database update ``` 使用Sqlite数据库时注意: ```csharp services.AddDbContext(options => { SQLitePCL.raw.SetPr...
public static class DataTableUtils { /// /// 转化一个DataTable /// /// /// /// public static DataTa...