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();
|
}
|
}
|
}
|