public bool IsMet(UpdateStepContextPrecondition context) { var param = context.Precondition.Param; if ((param == null) || (param.Length != 1) || (string.IsNullOrEmpty(param[0].Value))) { throw new ArgumentNullException("Role name must be specified as a parameter for condition RoleNotFound"); } return(!_membershipAdapter.RoleExists(param[0].Value)); }
public bool IsMet(UpdateStepContextPrecondition context) { if (context == null) { throw new ArgumentNullException(@"context"); } bool result = !_checker.IsExecuted(context.AssemblyName, context.UpdateVersion, context.StepNumber); return(result); }
public bool IsMet(UpdateStepContextPrecondition context) { var precondition = context.Precondition; var param = precondition.Param; if ((param == null) || (param.Length == 0) || (String.IsNullOrEmpty(param[0].Value))) { throw new ArgumentNullException(nameof(precondition)); } var result = !_checker.Exists(param[0].Value); return(result); }
public bool IsMet(UpdateStepContextPrecondition context) { if (context == null) { throw new ArgumentNullException(@"context"); } var param = context.Precondition.Param; if ((param == null) || (param.Length == 0) || (string.IsNullOrEmpty(param[0].Value))) { throw new ArgumentNullException(@"param", "Database type for condition DbType must be specified"); } return(_databaseService.CanHandle(param[0].Value)); }
public bool CanHandle(UpdateStepContextPrecondition context) { return(context.Precondition.Precondition == @"DbProcedureNotFound"); }
public bool CanHandle(UpdateStepContextPrecondition context) { return(@"RoleNotFound" == context.Precondition.Precondition); }
public bool CanHandle(UpdateStepContextPrecondition context) { return(context.Precondition.Precondition == @"DbForeignKeyNotFound"); }
public bool CanHandle(UpdateStepContextPrecondition context) { return(context.Precondition.Precondition == @"DbType"); }
public bool CanHandle(UpdateStepContextPrecondition context) { return(context.Precondition.Precondition == "StepNotExecuted"); }
public bool IsMet(UpdateStepContextPrecondition precondition) { return(true); }
public bool CanHandle(UpdateStepContextPrecondition precondition) { return(precondition.Precondition.Precondition == @"ForceExecution"); }
public UpdateStepContextPrecondition(UpdateStepContextPrecondition context) : base(context) { Precondition = context.Precondition; }