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.

57 lines
1.5 KiB

1 year ago
using System.ComponentModel.DataAnnotations;
using ChangkeTec.SDMS.Model.Enums;
using CK.SCP.Utils;
namespace ChangkeTec.SDMS.Model
{
public class DbSetting
{
public DbSetting()
{
#region ly 2019-05-05
= DataBaseType.SQLServer.ToString();
= "127.0.0.1";
= "1433";
= "SDMS";
= "sa";
= "5E0AFEB85CA001A3371A9F19E7EC4DFF";
#endregion
}
public DbSetting(DataBaseType type)
{
= type.ToString();
= "127.0.0.1";
= "1433";
= "SDMS";
= "sa";
= "5E0AFEB85CA001A3371A9F19E7EC4DFF";
}
[StringLength(50)]
public string { get; set; } //= Enums.DataBaseType.SQLServer.ToString();
[StringLength(50)]
public string { get; set; } //= "127.0.0.1";
[StringLength(50)]
public string { get; set; } //= "1433";
[StringLength(50)]
public string { get; set; } //= "DB_NAME";
[StringLength(50)]
public string { get; set; } //= "sa";
[StringLength(50)]
public string { get; set; } //= "5E0AFEB85CA001A3371A9F19E7EC4DFF";
//public override string ToString()
//{
// return EntitiesHelper.GetPropertiesString(this);
//}
}
}