29 lines
588 B
C#
29 lines
588 B
C#
|
|
using System;
|
|||
|
|
|
|||
|
|
namespace TBF
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Database settings required to make a connection
|
|||
|
|
/// </summary>
|
|||
|
|
public class DBSettings : ICloneable
|
|||
|
|
{
|
|||
|
|
public DBType DbType;
|
|||
|
|
public string ConnectionString;
|
|||
|
|
|
|||
|
|
public DBSettings()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public DBSettings(DBType dbType, string connectionString)
|
|||
|
|
{
|
|||
|
|
this.DbType = dbType;
|
|||
|
|
this.ConnectionString = connectionString;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public object Clone()
|
|||
|
|
{
|
|||
|
|
return new DBSettings(DbType, ConnectionString);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|