JXMovies/Core/JXCMS.Core/Db/DbConfig.cs

43 lines
1002 B
C#
Raw Permalink Normal View History

2020-02-09 19:10:05 +08:00
namespace JXCMS.Core.Db
{
/// <summary>
/// 数据库配置类
/// </summary>
public class DbConfig
{
/// <summary>
/// 数据库类型目前支持sqlite,mysql,sqlserver,oracle,postgresql
/// </summary>
public string DbType { get; set; }
/// <summary>
/// 数据库URL
/// </summary>
public string DbUrl { get; set; }
/// <summary>
/// 数据库端口号
/// </summary>
public string DbPort { get; set; }
/// <summary>
/// 数据库名
/// </summary>
public string DbName { get; set; }
/// <summary>
/// 数据库用户名
/// </summary>
public string Username { get; set; }
/// <summary>
/// 数据库密码
/// </summary>
public string Password { get; set; }
/// <summary>
/// 表前缀
/// </summary>
public string Prefix { get; set; }
}
}