Table of Contents

Class PostgresEntityBuilderExtensions

Namespace
NextORM.Postgres
Assembly
nextorm.postgres.dll

PostgreSQL-only fluent members of EntityBuilder<TEntity>, removed from the common nextorm package and re-exposed here as extension methods. Add using NextORM.Postgres; to keep the fluent chain unchanged on a PostgreSQL provider. The render-time dialect gating (and the thrown exceptions) is unchanged.

public static class PostgresEntityBuilderExtensions
Inheritance
PostgresEntityBuilderExtensions
Inherited Members

Methods

DistinctOn<TEntity, TResult>(EntityBuilder<TEntity>, Expression<Func<TEntity, TResult>>)

Adds a DISTINCT ON (expr, ...) clause (PostgreSQL): keeps the first row of each distinct key, where exp is a single column or an anonymous type to key on several columns. PostgreSQL requires the leading ORDER BY expressions to match the key. Cannot be combined with Distinct. Requires a dialect that supports it (see ISqlDialect.DistinctOn).

public static EntityBuilder<TEntity> DistinctOn<TEntity, TResult>(this EntityBuilder<TEntity> builder, Expression<Func<TEntity, TResult>> exp)

Parameters

builder EntityBuilder<TEntity>

The query builder to extend.

exp Expression<Func<TEntity, TResult>>

The key selector: a single column or an anonymous type keying on several columns.

Returns

EntityBuilder<TEntity>

Type Parameters

TEntity
TResult