摘要: Startup.cs下ConfigureServices代码 services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "基础", Version = "v1" }); c.SwaggerDoc("v2", 阅读全文
posted @ 2021-10-08 16:26 lilyshy 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 方法一、使用linq List<Dictionary<string, object>> dict = dt.AsEnumerable().Select( row => dt.Columns.Cast<DataColumn>().ToDictionary( column => column.Colum 阅读全文
posted @ 2021-10-08 09:49 lilyshy 阅读(775) 评论(0) 推荐(0) 编辑