예제 #1
0
 /**
  * Validates that all of the clauses that make up this query are consistent with the
  * specified EntityType.
  * @param entityType A EntityType
  */
 public void Validate(Type entityType)
 {
     _entityType = entityType;
     if (_wherePredicate != null)
     {
         _wherePredicate.Validate(entityType);
     }
     if (_orderByClause != null)
     {
         _orderByClause.Validate(entityType);
     }
     if (_selectClause != null)
     {
         _selectClause.Validate(entityType);
     }
 }
예제 #2
0
 /**
  * Validates that all of the clauses that make up this query are consistent with the
  * specified EntityType.
  * @param entityType A EntityType
  */
 #region Modified code - Added entityMetadataProvider parameter
 public void Validate(Type entityType, IEntityMetadataProvider entityMetadataProvider)
 {
     _entityType = entityType;
     if (_wherePredicate != null)
     {
         _wherePredicate.Validate(entityType, entityMetadataProvider);
     }
     if (_orderByClause != null)
     {
         _orderByClause.Validate(entityType, entityMetadataProvider);
     }
     if (_selectClause != null)
     {
         _selectClause.Validate(entityType, entityMetadataProvider);
     }
 }