28 lines
697 B
C#
28 lines
697 B
C#
using Code.Utils;
|
|
using PrevuAPIUtils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PrevuWebAPI.Models
|
|
{
|
|
public class ClientConnectionModel
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid ClientId { get; set; }
|
|
public string ConnectionString { get; set; }
|
|
public int ConnectionType { get; set; }
|
|
|
|
public string DecryptedConnectionString()
|
|
{
|
|
if (ConnectionType == (int) DBConnectionType.ENTITY)
|
|
return EncryptionUtility.Decrypt(this.ConnectionString);
|
|
else
|
|
return this.ConnectionString;
|
|
}
|
|
}
|
|
|
|
}
|