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.
 
 

23 lines
587 B

using System;
namespace Znyc.Cloudcar.Admin.Commons.Attributes
{
/// <summary>
/// 数据库上下文配置
/// </summary>
public class AppDbContextFactoryAttribute : Attribute
{
/// <summary>
/// </summary>
/// <param name="dbConfigName">数据库配置名称</param>
public AppDbContextFactoryAttribute(string dbConfigName)
{
DbConfigName = dbConfigName;
}
/// <summary>
/// 数据库配置名称
/// </summary>
public string DbConfigName { get; set; }
}
}