public void Validate(EdmModel model, bool validateSyntax) { EdmModelValidationContext context = new EdmModelValidationContext(model, validateSyntax); context.OnError += this.OnError; new EdmModelValidationVisitor(context, EdmModelRuleSet.CreateEdmModelRuleSet(model.SchemaVersion, validateSyntax)).Visit(model); }
internal EdmModelValidationVisitor(EdmModelValidationContext context, EdmModelRuleSet ruleSet) { DebugCheck.NotNull(context); DebugCheck.NotNull(ruleSet); _context = context; _ruleSet = ruleSet; }
internal EdmModelValidationVisitor(EdmModelValidationContext context, EdmModelRuleSet ruleSet) { _context = context; _ruleSet = ruleSet; }