initial commit
This commit is contained in:
23
Cs_HMI/SubProject/MSSQLCommand/Monitor.cs
Normal file
23
Cs_HMI/SubProject/MSSQLCommand/Monitor.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MSSQLCommand
|
||||
{
|
||||
public class Monitor
|
||||
{
|
||||
/// <summary>
|
||||
/// Connection String
|
||||
/// </summary>
|
||||
public string CS { get; private set; }
|
||||
|
||||
private int
|
||||
public Monitor(string ip, string id, string pass, string db)
|
||||
{
|
||||
//ConnectionString = $"Data Source =10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!";
|
||||
CS = $"Data Source={ip};Initial Catalog={db};Persist Security Info=True;User ID={id};Password={pass}";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user