public void Validate(CustomValidationResults validations, ValidateDynamicValue validationMethod) { StringExpressionHelpers.Validate(Properties[MongoDBMapReduceShared.Names.Query], Context, validations, validationMethod); StringExpressionHelpers.Validate(Properties[MongoDBMapReduceShared.Names.Map], Context, validations, validationMethod); StringExpressionHelpers.Validate(Properties[MongoDBMapReduceShared.Names.Reduce], Context, validations, validationMethod); StringExpressionHelpers.Validate(Properties[MongoDBMapReduceShared.Names.Finalize], Context, validations, validationMethod); }
public void Validate(CustomValidationResults validations, ValidateDynamicValue validationMethod) { StringExpressionHelpers.Validate(Properties[MongoDBReadShared.Names.AggregationPipeline], Context, validations, validationMethod); StringExpressionHelpers.Validate(Properties[MongoDBReadShared.Names.Query], Context, validations, validationMethod); StringExpressionHelpers.Validate(Properties[MongoDBReadShared.Names.Fields], Context, validations, validationMethod); StringExpressionHelpers.Validate(Properties[MongoDBReadShared.Names.Sort], Context, validations, validationMethod); StringExpressionHelpers.Validate(Properties[MongoDBReadShared.Names.Skip], Context, validations, validationMethod); StringExpressionHelpers.Validate(Properties[MongoDBReadShared.Names.Limit], Context, validations, validationMethod); }
public void Validate(CustomValidationResults validations, ValidateDynamicValue validationMethod) { StringExpressionHelpers.Validate(Properties[ExecuteSQLShared.SqlStatementPropertyName], Context, validations, validationMethod); var resultType = ResultTypeValue; if (resultType.CustomType != null) { IEnumerable <string> missingFields = resultType.Fields.Select(f => f.Name).Where(s => resultType.CustomType.GetProperty(s) == null); if (missingFields.Any()) { validations.AddValidationResult( ExecuteSQLShared.ResultTypePropertyName, string.Format("Custom type {0} has no field(s) named [{1}].", resultType.CustomType.Name, string.Join(", ", missingFields)), CustomValidationType.Error); } } }
public void Validate(CustomValidationResults validations, ValidateDynamicValue validationMethod) { StringExpressionHelpers.Validate(Properties[MongoDBWriteShared.Names.UpdateOperation], Context, validations, validationMethod); StringExpressionHelpers.Validate(Properties[MongoDBWriteShared.Names.Criteria], Context, validations, validationMethod); }