From 1a1c8e71fcd14858f595029f089b2d4a00202b32 Mon Sep 17 00:00:00 2001
From: ogi <Administrator@S-OGI-PC>
Date: Fri, 05 Dec 2025 09:24:16 +0900
Subject: [PATCH] プロジェクトファイルを追加。

---
 HotelPms.Share/Data/DBConnectItem.cs |   83 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 83 insertions(+), 0 deletions(-)

diff --git a/HotelPms.Share/Data/DBConnectItem.cs b/HotelPms.Share/Data/DBConnectItem.cs
new file mode 100644
index 0000000..b94e579
--- /dev/null
+++ b/HotelPms.Share/Data/DBConnectItem.cs
@@ -0,0 +1,83 @@
+namespace HotelPms.Share.Data;
+
+/// <summary>
+/// テーブルFacilityMstに対応するクラスです。
+/// </summary>
+[Serializable()]
+public class DBConnectItem
+{
+    private string hostName = string.Empty;
+    public string HostName
+    {
+        get { return hostName; }
+        set { hostName = value; }
+    }
+    private string dBName = string.Empty;
+
+    public string DBName
+    {
+        get { return dBName; }
+        set { dBName = value; }
+    }
+    private string userID = string.Empty;
+
+    public string UserID
+    {
+        get { return userID; }
+        set { userID = value; }
+    }
+    private string password = string.Empty;
+
+    public string Password
+    {
+        get { return password; }
+        set { password = value; }
+    }
+
+    /// <summary>
+    /// ※SqlServerでは使わない 1433となる
+    /// </summary>
+    public int Port { get; set; } = 5432;
+
+    private object tag = null;
+
+    public object Tag
+    {
+        get { return tag; }
+        set { tag = value; }
+    }
+
+    public DBConnectItem()
+    { 
+    }
+
+    public DBConnectItem(string hostName, string dBName, string userID, string password)
+        : this(hostName, dBName, userID, password, 5432)
+    { }
+
+    public DBConnectItem(string hostName, string dBName, string userID, string password, int port)
+        : this(hostName, dBName, userID, password, port, null)
+    { }
+
+    public DBConnectItem(string hostName, string dBName, string userID, string password, int port, object tag)
+    {
+        this.hostName = hostName;
+        this.dBName = dBName;
+        this.userID = userID;
+        this.password = password;
+        Port = port;
+        this.tag = tag;
+    }
+
+    public virtual DBConnectItem Clone()
+    {
+        return new DBConnectItem()
+        {
+            HostName = this.hostName,
+            DBName = this.dBName,
+            UserID = this.userID,
+            Password = this.password,
+            Tag = this.tag
+        }; 
+    }
+}

--
Gitblit v1.10.0