From cb683bbc5db174d236fafd35e833993201a3bad2 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期三, 21 八月 2024 15:30:37 +0800 Subject: [PATCH] 修改自增主键插入问题 --- WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs b/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs index 79da06d..a62b443 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs @@ -1,4 +1,5 @@ 锘縰sing Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.DataProtection.KeyManagement; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; @@ -96,6 +97,12 @@ return Json(InvokeService("Import", new object[] { fileInput })); } + [HttpPost, Route("ExportSeedData"), AllowAnonymous] + public ActionResult ExportSeedData() + { + return Json(InvokeService("ExportSeedData", new object[] { })); + } + private object InvokeService(string methodName, object[] parameters) { Type t = Service.GetType(); -- Gitblit v1.9.3