控制器基类增加一个AppPath属性获取应用程序根目录

This commit is contained in:
falcon 2022-03-22 16:29:31 +08:00
parent 41c41878e1
commit e6934d6041

View File

@ -29,6 +29,12 @@ namespace Falcon.SugarApi.ApiDefinistions
/// Sugar数据库
/// </summary>
public SugarDbContext SugarDb { get; set; }
/// <summary>
/// 应用程序跟目录
/// </summary>
public string AppPath { get => AppDomain.CurrentDomain.BaseDirectory; }
/// <summary>
/// 获取请求的方法前缀
/// </summary>