using DbAPI.Connections;
using DTS.Common.Interface.Database;
using System;
using DTS.Common.Classes.TestEngineerDetails;
using DTS.Common.Interface.TestMetaData;
namespace DbAPI.TestEngineerDetails
{
///
/// TestEngineerDetails related functions (GetTestEngineerDetails, )
///
public interface ITestEngineerDetails
{
///
/// Inserts a new record in the TestEngineerDetails table
///
///
///
///
/// The Id of the new record in the TestEngineerDetails table
/// Error string returned, possibly from sp_TestEngineerDetailsUpdate
/// 0 (ERROR_SUCCESS) on success, all other values are error codes
ulong TestEngineerDetailsInsert(IUserDbRecord user,
IConnectionDetails connection,
TestEngineerDetailsDbRecord testEngineerDetailsDbRecord,
out int newId,
out string errorString);
///
/// Updates an existing record in the TestEngineerDetails table
///
///
///
///
/// Error string returned, possibly from sp_TestEngineerDetailsUpdate
/// 0 (ERROR_SUCCESS) on success, all other values are error codes
ulong TestEngineerDetailsUpdate(IUserDbRecord user,
IConnectionDetails connection,
TestEngineerDetailsDbRecord testEngineerDetailsDbRecord,
out string errorString);
///
/// Updates an existing record or Inserts a new record in the TestEngineerDetails table
///
///
///
///
/// Error string returned, possibly from sp_TestEngineerDetailsUpdate
/// 0 (ERROR_SUCCESS) on success, all other values are error codes
ulong TestEngineerDetailsUpdateInsert(IUserDbRecord user,
IConnectionDetails connection,
TestEngineerDetailsDbRecord testEngineerDetailsDbRecord,
out string errorString);
///
/// retrieves all test engineers matching search criteria
///
///
///
/// Name in the TestEngineerDetails table
/// null, or records found
/// 0 (ERROR_SUCCESS) on success, all other values are error codes
ulong TestEngineerDetailsGet(IUserDbRecord user,
IConnectionDetails connection,
string name,
out ITestEngineerDetailsDbRecord[] testEngineerDetailsDbRecords);
///
/// Deletes an entry in the TestEngineerDetails table
///
///
///
/// Name in the TestEngineerDetails table
/// Error string returned, possibly from sp_TestEngineerDetailsDelete
/// 0 (ERROR_SUCCESS) on success, all other values are error codes
ulong TestEngineerDetailsDelete(IUserDbRecord user,
IConnectionDetails connection,
string name,
out string errorString);
}
}