public SelectExpression(IEntityType entityType, ISqlGeneratorFactory querySqlGeneratorFactory)
 {
     Projection                = new EntityProjectionExpression(entityType, _rootAlias);
     FromExpression            = new RootReferenceExpression(entityType, _rootAlias);
     EntityType                = entityType;
     FilterExpression          = GetDiscriminatorPredicate(entityType);
     _querySqlGeneratorFactory = querySqlGeneratorFactory;
 }
 public SelectExpression(IEntityType entityType, IQuerySource querySource)
 {
     Projection       = new EntityProjectionExpression(entityType, _rootAlias);
     FromExpression   = new RootReferenceExpression(entityType, _rootAlias);
     EntityType       = entityType;
     FilterExpression = GetDiscriminatorPredicate(entityType);
     _querySource     = querySource;
 }