/// <summary>
 ///     Validate the <see cref = "EdmModel" /> and all of its properties given certain version.
 /// </summary>
 /// <param name = "root"> The root of the model to be validated </param>
 /// <param name = "validateSyntax"> True to validate the syntax, otherwise false </param>
 internal void Validate(Edm.EdmModel root, bool validateSyntax)
 {
     // Build up the validation context
     var context = new EdmModelValidationContext(validateSyntax);
     context.OnError += OnError;
     context.Validate(root);
 }
Example #2
0
 public NLinqVisitor(Edm.Metadata metadata)
 {
     this.metadata = metadata;
     identifiers = new Dictionary<string, PropertyExpression>();
 }