Exemple #1
0
 /// <summary>
 /// Constructor from model.
 /// </summary>
 /// <param name="data">SqlJobModel object used to instantiate SqlJob.</param>
 public SqlJob(SqlJobModel model)
 {
     Data = new SqlJobData(model);
 }
 /// <summary>
 /// Constructor, initialises required objects, adds name provided and creates job with jobId.
 /// </summary>
 /// <param name="jobId"></param>
 /// <param name="stepName"></param>
 public SqlStepModel(Guid jobId, String stepName)
 {
     CreateObjects();
     Job = new SqlJobModel(jobId);
     Name = stepName;
 }
 /// <summary>
 /// Initialises required objects.
 /// </summary>
 public void CreateObjects()
 {
     Job = new SqlJobModel(false);
     OnSuccessAction = new SqlActionModel();
     OnSuccessStep = new SqlStepModel(false);
     OnFailureAction = new SqlActionModel();
     OnFailureStep = new SqlStepModel(false);
 }
 /// <summary>
 /// Constructor, initialises required objects, adds ID provided and creates job with jobId.
 /// </summary>
 /// <param name="jobId">Id of job.</param>
 /// <param name="id">Id of step.</param>
 public SqlStepModel(Guid jobId, Int32 id)
 {
     CreateObjects();
     Job = new SqlJobModel(jobId);
     Id = id;
 }