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