Exemplo n.º 1
0
        internal static void Validate(EdmModel validateRoot, EdmModelValidationContext context)
        {
            var edmModelValidationRuleSet
                = EdmModelRuleSet.CreateEdmModelRuleSet(context.ValidationContextVersion, context.ValidateSyntax);

            var modelVisitor = new EdmModelValidationVisitor(context, edmModelValidationRuleSet);

            modelVisitor.Visit(validateRoot);
        }
 internal EdmModelValidationVisitor(EdmModelValidationContext context, EdmModelRuleSet ruleSet)
 {
     _context = context;
     _ruleSet = ruleSet;
 }
Exemplo n.º 3
0
 internal EdmModelValidationVisitor(EdmModelValidationContext context, EdmModelRuleSet ruleSet)
 {
     _context = context;
     _ruleSet = ruleSet;
 }