From e6934d60414cf0fb83db7e88dbf32115f1de34c9 Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Tue, 22 Mar 2022 16:29:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=99=A8=E5=9F=BA=E7=B1=BB?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AAAppPath=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=BA=94=E7=94=A8=E7=A8=8B=E5=BA=8F=E6=A0=B9?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs index 93452ff..5be63a4 100644 --- a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs +++ b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs @@ -29,6 +29,12 @@ namespace Falcon.SugarApi.ApiDefinistions /// Sugar数据库 /// public SugarDbContext SugarDb { get; set; } + + /// + /// 应用程序跟目录 + /// + public string AppPath { get => AppDomain.CurrentDomain.BaseDirectory; } + /// /// 获取请求的方法前缀 ///