You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
569 B
24 lines
569 B
2 years ago
|
using System;
|
||
|
|
||
|
namespace Znyc.Admin.Commons.Core.DataManager
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 数据库连接配置特性
|
||
|
/// </summary>
|
||
|
public class AppDBContextAttribute : Attribute
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 数据库配置名称
|
||
|
/// </summary>
|
||
|
public string DbConfigName { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 构造函数
|
||
|
/// </summary>
|
||
|
/// <param name="dbConfigName"></param>
|
||
|
public AppDBContextAttribute(string dbConfigName)
|
||
|
{
|
||
|
DbConfigName = dbConfigName;
|
||
|
}
|
||
|
}
|
||
|
}
|