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.DataAccessDirect.Server/DemoAccess.cs |   73 ++++++++++++++++++++++++++++++++++++
 1 files changed, 73 insertions(+), 0 deletions(-)

diff --git a/HotelPms.DataAccessDirect.Server/DemoAccess.cs b/HotelPms.DataAccessDirect.Server/DemoAccess.cs
new file mode 100644
index 0000000..827fde2
--- /dev/null
+++ b/HotelPms.DataAccessDirect.Server/DemoAccess.cs
@@ -0,0 +1,73 @@
+using HotelPms.Data;
+using HotelPms.Data.Master;
+using HotelPms.Share.Data;
+using HotelPms.Share.IO;
+using System.Data;
+
+namespace HotelPms.DataAccessDirect.Server
+{
+    /// <summary>
+    /// データベース制御(サーバー側)
+    /// 未使用
+    /// </summary>
+    public class DemoAccess : DataAccessDirectBase, IDisposable
+    {
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="access"></param>
+        public DemoAccess(DataAccess access)
+        {
+            TableName = "M_Demo";
+            DBAccess = access;
+        }
+
+        public void Dispose()
+        {
+        }
+
+        public DataResult Add(Demo data)
+        {
+            throw new NotImplementedException();
+        }
+
+        public bool Exists(int pID)
+        {
+            throw new NotImplementedException();
+        }
+
+        public Demo GetItem(int pID)
+        {
+            throw new NotImplementedException();
+        }
+
+        public DataTable GetMasterGridData(string where)
+        {
+            throw new NotImplementedException();
+        }
+
+        /// <summary>
+        /// データ削除
+        /// </summary>
+        /// <param name="where"></param>
+        /// <returns></returns>
+        public DataResult Remove(string where)
+        {
+            DataResult result = new DataResult() { ErrNo = 0, ErrData = string.Empty };
+            string sql = $"DELETE FROM {TableName} WHERE {where}";
+            OperationLog.Instance.WriteLog($"Sql生成:{sql}");
+            if (DBAccess.ExecuteNonQuery(sql) == -1)
+            {
+                result.ErrNo = DBAccess.ErrNo;
+                result.ErrData = DBAccess.ErrInfo;
+            }
+            OperationLog.Instance.WriteLog($"更新:{result.ToString()}");
+            return result;
+        }
+
+        public DataResult Update(Demo data)
+        {
+            throw new NotImplementedException();
+        }
+    }
+}
\ No newline at end of file

--
Gitblit v1.10.0