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