Пример #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;
 }
Пример #3
0
 internal EdmModelValidationVisitor(EdmModelValidationContext context, EdmModelRuleSet ruleSet)
 {
     _context = context;
     _ruleSet = ruleSet;
 }