using CK.SCP.Models.Enums; namespace CK.SCP.Models { public class DbSetting { public override string ToString() { return EntitiesHelper.GetPropertiesString(this); } public DbSetting() { } public DbSetting(DataBaseType type) { 数据库类型 = type.ToString(); } public string 数据库类型 { get; set; } = Enums.DataBaseType.SQLServer.ToString(); public string 服务器地址 { get; set; } = "127.0.0.1"; public string 端口 { get; set; } = "1433"; public string 数据库名称 { get; set; } = "DB_NAME"; public string 用户名 { get; set; } = "sa"; public string 密码 { get; set; } = "5E0AFEB85CA001A3371A9F19E7EC4DFF"; } }