2017-03-19 09:37:06 +00:00
|
|
|
|
///
|
2022-01-23 18:56:15 +00:00
|
|
|
|
/// Copyright (c) 2021 Sensus Slovensko a.s.
|
2017-03-19 09:37:06 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
2022-01-23 18:56:15 +00:00
|
|
|
|
namespace Common
|
2017-03-19 09:37:06 +00:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Database settings required to make a connection
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class DBSettings : ICloneable
|
|
|
|
|
|
{
|
2021-09-23 09:46:40 +00:00
|
|
|
|
public DBType DbType;
|
2017-03-19 09:37:06 +00:00
|
|
|
|
public string ConnectionString;
|
|
|
|
|
|
|
|
|
|
|
|
public DBSettings()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-09-23 09:46:40 +00:00
|
|
|
|
public DBSettings(DBType dbType, string connectionString)
|
2017-03-19 09:37:06 +00:00
|
|
|
|
{
|
|
|
|
|
|
this.DbType = dbType;
|
|
|
|
|
|
this.ConnectionString = connectionString;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public object Clone()
|
|
|
|
|
|
{
|
|
|
|
|
|
return new DBSettings(DbType, ConnectionString);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|