/// <summary> /// Constructor from model. /// </summary> /// <param name="data">SqlStepModel object used to instantiate SqlStep.</param> public SqlStep(SqlStepModel model) { Data = new SqlStepData(model); }
/// <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> /// Initialise required properties. /// </summary> public void CreateObjects() { StartStep = new SqlStepModel(); NotifyLevelEventLog = new SqlLevelModel(); NotifyLevelEmail = new SqlLevelModel(); NotifyLevelNetsend = new SqlLevelModel(); NotifyLevelPage = new SqlLevelModel(); DeleteLevel = new SqlLevelModel(); LastRunOutcome = new SqlOutcomeModel(); NextRunSchedule = new SqlScheduleModel(); CurrentExecutionStatus = new SqlExecutionStatusModel(); Steps = new SqlStepListModel(); Schedules = new SqlScheduleListModel(); TargetServers = new SqlTargetServerListModel(); ExecutionStatusLookup = new SqlExecutionStatusListModel(); OutcomeLookup = new SqlOutcomeListModel(); LevelLookup = new SqlLevelListModel(); }