using System; using System.Collections.Generic; using System.Text; using Ease.Core.DataAccess; using HRM.BO.SearchTools; namespace HRM.DA.DA.SearchTools { internal class QTSearchColumnDA { public QTSearchColumnDA() { } internal static void Insert(TransactionContext tc, QTSearchColumn item) { string sql = SQLParser.MakeSQL( @"INSERT INTO dbo.QTSearchColumn (QTSearchColumnID, QueryToolID, ColumnID, Caption) VALUES (%n, %n, %n, %s)", item.ID, item.QueryToolID, item.ColumnID, item.Caption); tc.ExecuteNonQuery(sql); } internal static void Update(TransactionContext tc, QTSearchColumn item) { string sql = SQLParser.MakeSQL(@"UPDATE dbo.QTSearchColumn SET QueryToolID = %n, ColumnID = %n, Caption = %s WHERE QTSearchColumnID = %n)", item.QueryToolID, item.ColumnID, item.Caption, item.ID); tc.ExecuteNonQuery(sql); } } }