增加了一个数据库注入异常
This commit is contained in:
parent
cd111b81fc
commit
b90a22ac6e
16
Falcon.SugarApi/DatabaseManager/DatabaseDIFailException.cs
Normal file
16
Falcon.SugarApi/DatabaseManager/DatabaseDIFailException.cs
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Falcon.SugarApi.DatabaseManager
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 数据库注入失败异常
|
||||||
|
/// </summary>
|
||||||
|
public class DatabaseDIFailException<T> :Exception
|
||||||
|
where T: DbContextBase {
|
||||||
|
/// <summary>
|
||||||
|
/// 数据库注入失败
|
||||||
|
/// </summary>
|
||||||
|
public DatabaseDIFailException():base($"数据库{nameof(T)}注入失败!无法获取数据库实例!") { }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user