32 lines
569 B
C#
32 lines
569 B
C#
|
|
///
|
|||
|
|
/// Copyright (c) 2013-2017 Sensus Metering Systems
|
|||
|
|
///
|
|||
|
|
using System;
|
|||
|
|
|
|||
|
|
namespace Users
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Database settings required to make a connection
|
|||
|
|
/// </summary>
|
|||
|
|
public class DBSettings : ICloneable
|
|||
|
|
{
|
|||
|
|
public Users.Entities.DBType DbType;
|
|||
|
|
public string ConnectionString;
|
|||
|
|
|
|||
|
|
public DBSettings()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public DBSettings(Users.Entities.DBType dbType, string connectionString)
|
|||
|
|
{
|
|||
|
|
this.DbType = dbType;
|
|||
|
|
this.ConnectionString = connectionString;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public object Clone()
|
|||
|
|
{
|
|||
|
|
return new DBSettings(DbType, ConnectionString);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|