Table of Contents

Class NpgsqlMultirangeDbFunctionsExtensions

Namespace
Microsoft.EntityFrameworkCore
Assembly
Npgsql.EntityFrameworkCore.PostgreSQL.dll

Provides extension methods for multiranges supporting PostgreSQL translation.

public static class NpgsqlMultirangeDbFunctionsExtensions
Inheritance
NpgsqlMultirangeDbFunctionsExtensions
Inherited Members

Methods

ContainedBy<T>(NpgsqlRange<T>, NpgsqlRange<T>[])

Determines whether a range is contained by a specified multirange.

public static bool ContainedBy<T>(this NpgsqlRange<T> range, NpgsqlRange<T>[] multirange)

Parameters

range NpgsqlRange<T>

The specified range to locate in the multirange.

multirange NpgsqlRange<T>[]

The multirange in which to locate the specified range.

Returns

bool

true if the multirange contains the specified range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

ContainedBy<T>(NpgsqlRange<T>, NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

ContainedBy<T>(NpgsqlRange<T>, List<NpgsqlRange<T>>)

Determines whether a range is contained by a specified multirange.

public static bool ContainedBy<T>(this NpgsqlRange<T> range, List<NpgsqlRange<T>> multirange)

Parameters

range NpgsqlRange<T>

The specified range to locate in the multirange.

multirange List<NpgsqlRange<T>>

The multirange in which to locate the specified range.

Returns

bool

true if the multirange contains the specified range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

ContainedBy<T>(NpgsqlRange<T>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

ContainedBy<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Determines whether a multirange is contained by a specified multirange.

public static bool ContainedBy<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The specified multirange to locate in the multirange.

multirange2 NpgsqlRange<T>[]

The multirange in which to locate the specified multirange.

Returns

bool

true if the multirange contains the specified multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

ContainedBy<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

ContainedBy<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Determines whether a multirange is contained by a specified multirange.

public static bool ContainedBy<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The specified multirange to locate in the multirange.

multirange2 List<NpgsqlRange<T>>

The multirange in which to locate the specified multirange.

Returns

bool

true if the multirange contains the specified multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

ContainedBy<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Contains<T>(NpgsqlRange<T>[], NpgsqlRange<T>)

Determines whether a multirange contains a specified range.

public static bool Contains<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T> multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The multirange in which to locate the specified range.

multirange2 NpgsqlRange<T>

The specified range to locate in the multirange.

Returns

bool

true if the multirange contains the specified range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Contains<T>(NpgsqlRange<T>[], NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Contains<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Determines whether a multirange contains a specified multirange.

public static bool Contains<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The multirange in which to locate the specified multirange.

multirange2 NpgsqlRange<T>[]

The specified multirange to locate in the multirange.

Returns

bool

true if the multirange contains the specified multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Contains<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

Contains<T>(NpgsqlRange<T>[], T)

Determines whether a multirange contains a specified value.

public static bool Contains<T>(this NpgsqlRange<T>[] multirange, T value)

Parameters

multirange NpgsqlRange<T>[]

The multirange in which to locate the value.

value T

The value to locate in the range.

Returns

bool

true if the multirange contains the specified value; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Contains<T>(NpgsqlRange<T>[], T) is only intended for use via SQL translation as part of an EF Core LINQ query.

Contains<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>)

Determines whether a multirange contains a specified range.

public static bool Contains<T>(this List<NpgsqlRange<T>> multirange1, NpgsqlRange<T> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The multirange in which to locate the specified range.

multirange2 NpgsqlRange<T>

The specified range to locate in the multirange.

Returns

bool

true if the multirange contains the specified range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Contains<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Contains<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Determines whether a multirange contains a specified multirange.

public static bool Contains<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The multirange in which to locate the specified multirange.

multirange2 List<NpgsqlRange<T>>

The specified multirange to locate in the multirange.

Returns

bool

true if the multirange contains the specified multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Contains<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Contains<T>(List<NpgsqlRange<T>>, T)

Determines whether a multirange contains a specified value.

public static bool Contains<T>(this List<NpgsqlRange<T>> multirange, T value)

Parameters

multirange List<NpgsqlRange<T>>

The multirange in which to locate the value.

value T

The value to locate in the range.

Returns

bool

true if the multirange contains the specified value; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Contains<T>(List<NpgsqlRange<T>>, T) is only intended for use via SQL translation as part of an EF Core LINQ query.

DoesNotExtendLeftOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>)

Determines whether a multirange does not extend to the left of a range.

public static bool DoesNotExtendLeftOf<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)

Parameters

multirange NpgsqlRange<T>[]

The multirange.

range NpgsqlRange<T>

The multirange.

Returns

bool

true if the multirange does not extend to the left of the range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

DoesNotExtendLeftOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

DoesNotExtendLeftOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Determines whether a multirange does not extend to the left of another multirange.

public static bool DoesNotExtendLeftOf<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The first multirange.

multirange2 NpgsqlRange<T>[]

The second multirange.

Returns

bool

true if the first multirange does not extend to the left of the multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

DoesNotExtendLeftOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

DoesNotExtendLeftOf<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>)

Determines whether a multirange does not extend to the left of a range.

public static bool DoesNotExtendLeftOf<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)

Parameters

multirange List<NpgsqlRange<T>>

The multirange.

range NpgsqlRange<T>

The multirange.

Returns

bool

true if the multirange does not extend to the left of the range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

DoesNotExtendLeftOf<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

DoesNotExtendLeftOf<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Determines whether a multirange does not extend to the left of another multirange.

public static bool DoesNotExtendLeftOf<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The first multirange.

multirange2 List<NpgsqlRange<T>>

The second multirange.

Returns

bool

true if the first multirange does not extend to the left of the multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

DoesNotExtendLeftOf<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

DoesNotExtendRightOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>)

Determines whether a multirange does not extend to the right of a range.

public static bool DoesNotExtendRightOf<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)

Parameters

multirange NpgsqlRange<T>[]

The multirange.

range NpgsqlRange<T>

The multirange.

Returns

bool

true if the multirange does not extend to the right of the range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

DoesNotExtendRightOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

DoesNotExtendRightOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Determines whether a multirange does not extend to the right of another multirange.

public static bool DoesNotExtendRightOf<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The first multirange.

multirange2 NpgsqlRange<T>[]

The second multirange.

Returns

bool

true if the first multirange does not extend to the right of the multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

DoesNotExtendRightOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

DoesNotExtendRightOf<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>)

Determines whether a multirange does not extend to the right of a range.

public static bool DoesNotExtendRightOf<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)

Parameters

multirange List<NpgsqlRange<T>>

The multirange.

range NpgsqlRange<T>

The multirange.

Returns

bool

true if the multirange does not extend to the right of the range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

DoesNotExtendRightOf<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

DoesNotExtendRightOf<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Determines whether a multirange does not extend to the right of another multirange.

public static bool DoesNotExtendRightOf<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The first multirange.

multirange2 List<NpgsqlRange<T>>

The second multirange.

Returns

bool

true if the first multirange does not extend to the right of the multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

DoesNotExtendRightOf<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Except<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Returns the set difference, which means the elements of one multirange that do not appear in a second multirange.

public static NpgsqlRange<T>[] Except<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The first multirange.

multirange2 NpgsqlRange<T>[]

The second multirange.

Returns

NpgsqlRange<T>[]

A multirange containing the elements that appear in the first range, but not the second range.

Type Parameters

T

Exceptions

NotSupportedException

Except<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

Except<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Returns the set difference, which means the elements of one multirange that do not appear in a second multirange.

public static List<NpgsqlRange<T>> Except<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The first multirange.

multirange2 List<NpgsqlRange<T>>

The second multirange.

Returns

List<NpgsqlRange<T>>

A multirange containing the elements that appear in the first range, but not the second range.

Type Parameters

T

Exceptions

NotSupportedException

Except<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Intersect<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Returns the set intersection, which means elements that appear in each of two multiranges.

public static NpgsqlRange<T>[] Intersect<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The first multirange.

multirange2 NpgsqlRange<T>[]

The second multirange.

Returns

NpgsqlRange<T>[]

A multirange containing the elements that appear in both ranges.

Type Parameters

T

Exceptions

NotSupportedException

Intersect<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

Intersect<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Returns the set intersection, which means elements that appear in each of two multiranges.

public static List<NpgsqlRange<T>> Intersect<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The first multirange.

multirange2 List<NpgsqlRange<T>>

The second multirange.

Returns

List<NpgsqlRange<T>>

A multirange containing the elements that appear in both ranges.

Type Parameters

T

Exceptions

NotSupportedException

Intersect<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsAdjacentTo<T>(NpgsqlRange<T>[], NpgsqlRange<T>)

Determines whether a multirange is adjacent to a range.

public static bool IsAdjacentTo<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)

Parameters

multirange NpgsqlRange<T>[]

The multirange.

range NpgsqlRange<T>

The range.

Returns

bool

true if the multirange and range are adjacent; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsAdjacentTo<T>(NpgsqlRange<T>[], NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsAdjacentTo<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Determines whether a multirange is adjacent to another multirange.

public static bool IsAdjacentTo<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The first multirange.

multirange2 NpgsqlRange<T>[]

The second multirange.

Returns

bool

true if the multiranges are adjacent; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsAdjacentTo<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsAdjacentTo<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>)

Determines whether a multirange is adjacent to a range.

public static bool IsAdjacentTo<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)

Parameters

multirange List<NpgsqlRange<T>>

The multirange.

range NpgsqlRange<T>

The range.

Returns

bool

true if the multirange and range are adjacent; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsAdjacentTo<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsAdjacentTo<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Determines whether a multirange is adjacent to another multirange.

public static bool IsAdjacentTo<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The first multirange.

multirange2 List<NpgsqlRange<T>>

The second multirange.

Returns

bool

true if the multiranges are adjacent; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsAdjacentTo<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsStrictlyLeftOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>)

Determines whether a multirange is strictly to the left of a range.

public static bool IsStrictlyLeftOf<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)

Parameters

multirange NpgsqlRange<T>[]

The multirange.

range NpgsqlRange<T>

The range.

Returns

bool

true if the multirange is strictly to the left of the range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsStrictlyLeftOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsStrictlyLeftOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Determines whether a multirange is strictly to the left of another multirange.

public static bool IsStrictlyLeftOf<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The first multirange.

multirange2 NpgsqlRange<T>[]

The second multirange.

Returns

bool

true if the first multirange is strictly to the left of the second multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsStrictlyLeftOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsStrictlyLeftOf<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>)

Determines whether a multirange is strictly to the left of a range.

public static bool IsStrictlyLeftOf<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)

Parameters

multirange List<NpgsqlRange<T>>

The multirange.

range NpgsqlRange<T>

The range.

Returns

bool

true if the multirange is strictly to the left of the range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsStrictlyLeftOf<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsStrictlyLeftOf<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Determines whether a multirange is strictly to the left of another multirange.

public static bool IsStrictlyLeftOf<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The first multirange.

multirange2 List<NpgsqlRange<T>>

The second multirange.

Returns

bool

true if the first multirange is strictly to the left of the second multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsStrictlyLeftOf<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsStrictlyRightOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>)

Determines whether a multirange is strictly to the right of a range.

public static bool IsStrictlyRightOf<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)

Parameters

multirange NpgsqlRange<T>[]

The multirange.

range NpgsqlRange<T>

The range.

Returns

bool

true if the multirange is strictly to the right of the range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsStrictlyRightOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsStrictlyRightOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Determines whether a multirange is strictly to the right of another multirange.

public static bool IsStrictlyRightOf<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The first multirange.

multirange2 NpgsqlRange<T>[]

The second multirange.

Returns

bool

true if the first multirange is strictly to the right of the second multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsStrictlyRightOf<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsStrictlyRightOf<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>)

Determines whether a multirange is strictly to the right of a range.

public static bool IsStrictlyRightOf<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)

Parameters

multirange List<NpgsqlRange<T>>

The multirange.

range NpgsqlRange<T>

The range.

Returns

bool

true if the multirange is strictly to the right of the range; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsStrictlyRightOf<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

IsStrictlyRightOf<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Determines whether a multirange is strictly to the right of another multirange.

public static bool IsStrictlyRightOf<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The first multirange.

multirange2 List<NpgsqlRange<T>>

The second multirange.

Returns

bool

true if the first multirange is strictly to the right of the second multirange; otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

IsStrictlyRightOf<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Merge<T>(NpgsqlRange<T>[])

Computes the smallest range that includes the entire multirange.

public static NpgsqlRange<T> Merge<T>(this NpgsqlRange<T>[] multirange)

Parameters

multirange NpgsqlRange<T>[]

The multirange.

Returns

NpgsqlRange<T>

The smallest range that includes the entire multirange.

Type Parameters

T

Exceptions

NotSupportedException

Merge<T>(NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

Merge<T>(List<NpgsqlRange<T>>)

Computes the smallest range that includes the entire multirange.

public static NpgsqlRange<T> Merge<T>(this List<NpgsqlRange<T>> multirange)

Parameters

multirange List<NpgsqlRange<T>>

The multirange.

Returns

NpgsqlRange<T>

The smallest range that includes the entire multirange.

Type Parameters

T

Exceptions

NotSupportedException

Merge<T>(List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Overlaps<T>(NpgsqlRange<T>[], NpgsqlRange<T>)

Determines whether a multirange overlaps another range.

public static bool Overlaps<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)

Parameters

multirange NpgsqlRange<T>[]

The multirange.

range NpgsqlRange<T>

The range.

Returns

bool

true if the multirange and range overlap (share points in common); otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Overlaps<T>(NpgsqlRange<T>[], NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Overlaps<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Determines whether a multirange overlaps another multirange.

public static bool Overlaps<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The first multirange.

multirange2 NpgsqlRange<T>[]

The second multirange.

Returns

bool

true if the multiranges overlap (share points in common); otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Overlaps<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

Overlaps<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>)

Determines whether a multirange overlaps another range.

public static bool Overlaps<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)

Parameters

multirange List<NpgsqlRange<T>>

The multirange.

range NpgsqlRange<T>

The range.

Returns

bool

true if the multirange and range overlap (share points in common); otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Overlaps<T>(List<NpgsqlRange<T>>, NpgsqlRange<T>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Overlaps<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Determines whether a multirange overlaps another multirange.

public static bool Overlaps<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The first multirange.

multirange2 List<NpgsqlRange<T>>

The second multirange.

Returns

bool

true if the multiranges overlap (share points in common); otherwise, false .

Type Parameters

T

Exceptions

NotSupportedException

Overlaps<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.

Union<T>(NpgsqlRange<T>[], NpgsqlRange<T>[])

Returns the set union, which means unique elements that appear in either of two multiranges.

public static NpgsqlRange<T>[] Union<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)

Parameters

multirange1 NpgsqlRange<T>[]

The first multirange.

multirange2 NpgsqlRange<T>[]

The second multirange.

Returns

NpgsqlRange<T>[]

A multirange containing the unique elements that appear in either multirange.

Type Parameters

T

Exceptions

NotSupportedException

Union<T>(NpgsqlRange<T>[], NpgsqlRange<T>[]) is only intended for use via SQL translation as part of an EF Core LINQ query.

Union<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>)

Returns the set union, which means unique elements that appear in either of two multiranges.

public static List<NpgsqlRange<T>> Union<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)

Parameters

multirange1 List<NpgsqlRange<T>>

The first multirange.

multirange2 List<NpgsqlRange<T>>

The second multirange.

Returns

List<NpgsqlRange<T>>

A multirange containing the unique elements that appear in either multirange.

Type Parameters

T

Exceptions

NotSupportedException

Union<T>(List<NpgsqlRange<T>>, List<NpgsqlRange<T>>) is only intended for use via SQL translation as part of an EF Core LINQ query.