예제 #1
0
        private bool CheckError(IEdmTypeReference edmTypeReference)
        {
            var edmType = edmTypeReference.Definition;

            if (!edmType.Errors().Any())
            {
                return(false);
            }
            var error = edmType.Errors().Select(x => $"Location: {x.ErrorLocation.ToString()}, {x.ErrorMessage }").FirstOrDefault();

            _logger.Trace($"edmTypeReference Error: {error.Dump()}");
            _logger.Warn($"Invalid Type Reference: {edmType}");
            SchemaErrors.Add($"Invalid Type Reference: {edmType}");
            return(true);
        }
예제 #2
0
 private void ValidationCallback(object sender, ValidationEventArgs args)
 {
     SchemaErrors.Add(new ErrorInfo(sender, args));
 }