Ready to Test
This commit is contained in:
8
Shared/Repositories/IDbConnectionFactory.cs
Normal file
8
Shared/Repositories/IDbConnectionFactory.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using System.Data.Common;
|
||||
|
||||
namespace OI.Metrology.Shared.Repositories;
|
||||
|
||||
public interface IDbConnectionFactory
|
||||
{
|
||||
DbConnection GetDbConnection(String connStringName);
|
||||
}
|
46
Shared/Repositories/IMetrologyRepo.cs
Normal file
46
Shared/Repositories/IMetrologyRepo.cs
Normal file
@ -0,0 +1,46 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Data;
|
||||
using System.Transactions;
|
||||
|
||||
namespace OI.Metrology.Shared.Repositories;
|
||||
|
||||
using DataModels;
|
||||
|
||||
public interface IMetrologyRepo
|
||||
{
|
||||
bool IsTestDatabase();
|
||||
|
||||
IEnumerable<ToolType> GetToolTypes();
|
||||
ToolType GetToolTypeByName(string name);
|
||||
ToolType GetToolTypeByID(int id);
|
||||
|
||||
IEnumerable<ToolTypeMetadata> GetToolTypeMetadataByToolTypeID(int id);
|
||||
|
||||
TransactionScope StartTransaction();
|
||||
|
||||
void PurgeExistingData(int toolTypeId, string title);
|
||||
long InsertToolDataJSON(JToken jsonbody, long headerId, List<ToolTypeMetadata> metaData, string tableName);
|
||||
|
||||
DataTable ExportData(String spName, DateTime startTime, DateTime endTime);
|
||||
|
||||
DataTable GetHeaders(int toolTypeId, DateTime? startTime, DateTime? endTime, int? pageNo, int? pageSize, long? headerid, out long totalRecords, bool isArchive);
|
||||
DataTable GetData(int toolTypeId, long headerId, bool isArchive);
|
||||
DataTable GetDataSharePoint(int toolTypeId, string headerId);
|
||||
|
||||
IEnumerable<HeaderCommon> GetHeaderTitles(int toolTypeId, int? pageNo, int? pageSize, out long totalRecords, bool isArchive);
|
||||
|
||||
Guid GetHeaderAttachmentIDByTitle(int toolTypeId, string title);
|
||||
Guid GetDataAttachmentIDByTitle(int toolTypeId, string title);
|
||||
|
||||
Guid GetHeaderAttachmentID(int toolTypeId, long headerId);
|
||||
string GetAttachmentInsertDateByGUID(string tableName, Guid attachmentId);
|
||||
Guid GetDataAttachmentID(int toolTypeId, long headerId, string title);
|
||||
|
||||
DataSet GetOIExportData(int toolTypeId, long headerid);
|
||||
|
||||
IEnumerable<KeyValuePair<string, string>> GetHeaderFields(int toolTypeId, long headerid, bool isArchive);
|
||||
|
||||
IEnumerable<AwaitingDispo> GetAwaitingDispo();
|
||||
|
||||
int UpdateReviewDate(int toolTypeId, long headerId, bool clearDate);
|
||||
}
|
Reference in New Issue
Block a user