- Add CronSchedule property to CfgProfileDto for scheduling support - Create ProfileSqlJobDto for SQL job execution data transfer - Update TriggeringDEXJobBatchCommand to accept ProfileId and Jobs collection - Make TriggeringDEXJobBatchCommand public for Hangfire job activation - Update Application DependencyInjection with required service registrations
54 lines
1.3 KiB
C#
54 lines
1.3 KiB
C#
namespace ECMJobRunner.Application.Common.Dtos
|
|
{
|
|
/// <summary>
|
|
/// Data Transfer Object for ProfileSqlJob entity
|
|
/// </summary>
|
|
public class ProfileSqlJobDto
|
|
{
|
|
/// <summary>
|
|
/// SQL Job ID
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Profile ID (foreign key)
|
|
/// </summary>
|
|
public long ProfileId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Active / Inactive switch
|
|
/// </summary>
|
|
public bool Active { get; set; }
|
|
|
|
/// <summary>
|
|
/// Execution sequence order
|
|
/// </summary>
|
|
public short Sequence { get; set; }
|
|
|
|
/// <summary>
|
|
/// Job name
|
|
/// </summary>
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// SQL query for pre-check validation
|
|
/// </summary>
|
|
public string? SqlCheckQuery { get; set; }
|
|
|
|
/// <summary>
|
|
/// Main SQL query to execute
|
|
/// </summary>
|
|
public string? SqlMainQuery { get; set; }
|
|
|
|
/// <summary>
|
|
/// API command to execute
|
|
/// </summary>
|
|
public string? ApiCommand { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optional description
|
|
/// </summary>
|
|
public string? Comment { get; set; }
|
|
}
|
|
}
|