MdpIngestBatchJournal.cs 650 B

1234567891011121314
  1. using Admin.NET.Plugin.AiDOP.DataPlatform.Core;
  2. namespace Admin.NET.Plugin.AiDOP.DataPlatform.UnifiedIngress;
  3. internal static class MdpIngestBatchJournal
  4. {
  5. internal static Task<int> AppendAsync(ISqlSugarClient db, Guid batchId, IngestDatasetIdentity identity,
  6. string eventCode, int? count = null, string? diagnostic = null) =>
  7. db.Ado.ExecuteCommandAsync(IngestBatchJournal.Insert, new
  8. {
  9. BatchId = batchId.ToString("D"), identity.TenantId, identity.FactoryId, identity.DatasetId, identity.SourceId,
  10. EventCode = eventCode, Attempt = (int?)null, Count = count, Diagnostic = diagnostic
  11. });
  12. }