SelectQueryable<T>

Classes > Nimblesite.Sql.Model > SelectQueryable

Represents a SQL query that can be built using LINQ query expressions

public sealed record SelectQueryable<T> : IOrderedQueryable<T>, IOrderedQueryable, IQueryable<T>, IEnumerable<T>, IQueryable, IEnumerable, IEquatable<SelectQueryable<T>>

Constructors

SelectQueryable<T>

public SelectQueryable(string tableName, string? alias = null)

Initializes a new instance of the SelectQueryable

Parameter Type Description
tableName String
alias String

Properties

ElementType

public Type ElementType { get; }

Gets the element type

Expression

public Expression Expression { get; }

Gets the expression

Provider

public IQueryProvider Provider { get; }

Gets the query provider

Methods

ToSqlStatement()

public SelectStatement ToSqlStatement()

Builds the final SelectStatement

Returns: SelectStatement

GetEnumerator()

public IEnumerator<T> GetEnumerator()

Not supported - this is for query building only

Returns: IEnumerator<<T>>