/// <summary> /// Creates a new instance of SelectExpression. /// </summary> /// <param name="dependencies"> Parameter object containing dependencies for this service. </param> /// <param name="queryCompilationContext"> Context for the query compilation. </param> public SelectExpression( [NotNull] SelectExpressionDependencies dependencies, [NotNull] RelationalQueryCompilationContext queryCompilationContext) : base(null, null) { Check.NotNull(dependencies, nameof(dependencies)); Check.NotNull(queryCompilationContext, nameof(queryCompilationContext)); Dependencies = dependencies; _queryCompilationContext = queryCompilationContext; }
/// <summary> /// Creates a new instance of SelectExpression. /// </summary> /// <param name="dependencies"> Parameter object containing dependencies for this service. </param> /// <param name="queryCompilationContext"> Context for the query compilation. </param> /// <param name="alias"> The alias. </param> public SelectExpression( [NotNull] SelectExpressionDependencies dependencies, [NotNull] RelationalQueryCompilationContext queryCompilationContext, [NotNull] string alias) : this(dependencies, queryCompilationContext) { Check.NotNull(alias, nameof(alias)); // When assigning alias to select expression make it unique Alias = queryCompilationContext.CreateUniqueTableAlias(alias); }
/// <summary> /// Creates a new instance of SelectExpression. /// </summary> /// <param name="dependencies"> Parameter object containing dependencies for this service. </param> /// <param name="queryCompilationContext"> Context for the query compilation. </param> /// <param name="alias"> The alias. </param> public SelectExpression( [NotNull] SelectExpressionDependencies dependencies, [NotNull] RelationalQueryCompilationContext queryCompilationContext, [NotNull] string alias) : this(dependencies, queryCompilationContext) { Check.NotNull(alias, nameof(alias)); // When assigning alias to select expression make it unique // ReSharper disable once VirtualMemberCallInConstructor Alias = queryCompilationContext.CreateUniqueTableAlias(alias); }
/// <summary> /// Initializes a new instance of the Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpressionFactory class. /// </summary> /// <param name="dependencies"> Parameter object containing dependencies for this service. </param> public SelectExpressionFactory([NotNull] SelectExpressionDependencies dependencies) { Check.NotNull(dependencies, nameof(dependencies)); Dependencies = dependencies; }