/// /// Copyright (c) 2021 Sensus Slovensko a.s. /// using System; namespace Common { /// /// Database settings required to make a connection /// public class DBSettings : ICloneable { public DBType DbType; public string ConnectionString; public bool IsValid { get { return (DbType != DBType.None) && !string.IsNullOrEmpty(ConnectionString); } } public DBSettings() { } public DBSettings(DBType dbType, string connectionString) { this.DbType = dbType; this.ConnectionString = connectionString; } public object Clone() { return new DBSettings(DbType, ConnectionString); } } }