控制器基类增加一个AppPath属性获取应用程序根目录
This commit is contained in:
parent
41c41878e1
commit
e6934d6041
|
@ -29,6 +29,12 @@ namespace Falcon.SugarApi.ApiDefinistions
|
||||||
/// Sugar数据库
|
/// Sugar数据库
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SugarDbContext SugarDb { get; set; }
|
public SugarDbContext SugarDb { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 应用程序跟目录
|
||||||
|
/// </summary>
|
||||||
|
public string AppPath { get => AppDomain.CurrentDomain.BaseDirectory; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取请求的方法前缀
|
/// 获取请求的方法前缀
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user