Search Results for

    Show / Hide Table of Contents

    Class NpgsqlMultirangeDbFunctionsExtensions

    Provides extension methods for multiranges supporting PostgreSQL translation.

    Inheritance
    object
    NpgsqlMultirangeDbFunctionsExtensions
    Namespace: Microsoft.EntityFrameworkCore
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public static class NpgsqlMultirangeDbFunctionsExtensions

    Methods

    | Improve this Doc View Source

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

    Determines whether a multirange is contained by a specified multirange.

    Declaration
    public static bool ContainedBy<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The specified multirange to locate in the multirange.

    List<><NpgsqlRange<><T>> multirange2

    The multirange in which to locate the specified multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a range is contained by a specified multirange.

    Declaration
    public static bool ContainedBy<T>(this NpgsqlRange<T> range, List<NpgsqlRange<T>> multirange)
    Parameters
    Type Name Description
    NpgsqlRange<><T> range

    The specified range to locate in the multirange.

    List<><NpgsqlRange<><T>> multirange

    The multirange in which to locate the specified range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a range is contained by a specified multirange.

    Declaration
    public static bool ContainedBy<T>(this NpgsqlRange<T> range, NpgsqlRange<T>[] multirange)
    Parameters
    Type Name Description
    NpgsqlRange<><T> range

    The specified range to locate in the multirange.

    NpgsqlRange<><T>[] multirange

    The multirange in which to locate the specified range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange is contained by a specified multirange.

    Declaration
    public static bool ContainedBy<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The specified multirange to locate in the multirange.

    NpgsqlRange<><T>[] multirange2

    The multirange in which to locate the specified multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange contains a specified value.

    Declaration
    public static bool Contains<T>(this List<NpgsqlRange<T>> multirange, T value)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange

    The multirange in which to locate the value.

    T value

    The value to locate in the range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange contains a specified multirange.

    Declaration
    public static bool Contains<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The multirange in which to locate the specified multirange.

    List<><NpgsqlRange<><T>> multirange2

    The specified multirange to locate in the multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange contains a specified range.

    Declaration
    public static bool Contains<T>(this List<NpgsqlRange<T>> multirange1, NpgsqlRange<T> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The multirange in which to locate the specified range.

    NpgsqlRange<><T> multirange2

    The specified range to locate in the multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange contains a specified value.

    Declaration
    public static bool Contains<T>(this NpgsqlRange<T>[] multirange, T value)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange

    The multirange in which to locate the value.

    T value

    The value to locate in the range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange contains a specified range.

    Declaration
    public static bool Contains<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T> multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The multirange in which to locate the specified range.

    NpgsqlRange<><T> multirange2

    The specified range to locate in the multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange contains a specified multirange.

    Declaration
    public static bool Contains<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The multirange in which to locate the specified multirange.

    NpgsqlRange<><T>[] multirange2

    The specified multirange to locate in the multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool DoesNotExtendLeftOf<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The first multirange.

    List<><NpgsqlRange<><T>> multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool DoesNotExtendLeftOf<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange

    The multirange.

    NpgsqlRange<><T> range

    The multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool DoesNotExtendLeftOf<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange

    The multirange.

    NpgsqlRange<><T> range

    The multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool DoesNotExtendLeftOf<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The first multirange.

    NpgsqlRange<><T>[] multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool DoesNotExtendRightOf<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The first multirange.

    List<><NpgsqlRange<><T>> multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool DoesNotExtendRightOf<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange

    The multirange.

    NpgsqlRange<><T> range

    The multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool DoesNotExtendRightOf<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange

    The multirange.

    NpgsqlRange<><T> range

    The multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool DoesNotExtendRightOf<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The first multirange.

    NpgsqlRange<><T>[] multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    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.

    Declaration
    public static List<NpgsqlRange<T>> Except<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The first multirange.

    List<><NpgsqlRange<><T>> multirange2

    The second multirange.

    Returns
    Type Description
    List<><NpgsqlRange<><T>>

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    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.

    Declaration
    public static NpgsqlRange<T>[] Except<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The first multirange.

    NpgsqlRange<><T>[] multirange2

    The second multirange.

    Returns
    Type Description
    NpgsqlRange<><T>[]

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static List<NpgsqlRange<T>> Intersect<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The first multirange.

    List<><NpgsqlRange<><T>> multirange2

    The second multirange.

    Returns
    Type Description
    List<><NpgsqlRange<><T>>

    A multirange containing the elements that appear in both ranges.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static NpgsqlRange<T>[] Intersect<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The first multirange.

    NpgsqlRange<><T>[] multirange2

    The second multirange.

    Returns
    Type Description
    NpgsqlRange<><T>[]

    A multirange containing the elements that appear in both ranges.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange is adjacent to another multirange.

    Declaration
    public static bool IsAdjacentTo<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The first multirange.

    List<><NpgsqlRange<><T>> multirange2

    The second multirange.

    Returns
    Type Description
    bool

    true if the multiranges are adjacent; otherwise, false.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange is adjacent to a range.

    Declaration
    public static bool IsAdjacentTo<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange

    The multirange.

    NpgsqlRange<><T> range

    The range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange is adjacent to a range.

    Declaration
    public static bool IsAdjacentTo<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange

    The multirange.

    NpgsqlRange<><T> range

    The range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange is adjacent to another multirange.

    Declaration
    public static bool IsAdjacentTo<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The first multirange.

    NpgsqlRange<><T>[] multirange2

    The second multirange.

    Returns
    Type Description
    bool

    true if the multiranges are adjacent; otherwise, false.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool IsStrictlyLeftOf<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The first multirange.

    List<><NpgsqlRange<><T>> multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool IsStrictlyLeftOf<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange

    The multirange.

    NpgsqlRange<><T> range

    The range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool IsStrictlyLeftOf<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange

    The multirange.

    NpgsqlRange<><T> range

    The range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool IsStrictlyLeftOf<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The first multirange.

    NpgsqlRange<><T>[] multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool IsStrictlyRightOf<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The first multirange.

    List<><NpgsqlRange<><T>> multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool IsStrictlyRightOf<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange

    The multirange.

    NpgsqlRange<><T> range

    The range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool IsStrictlyRightOf<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange

    The multirange.

    NpgsqlRange<><T> range

    The range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static bool IsStrictlyRightOf<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The first multirange.

    NpgsqlRange<><T>[] multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Computes the smallest range that includes the entire multirange.

    Declaration
    public static NpgsqlRange<T> Merge<T>(this List<NpgsqlRange<T>> multirange)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange

    The multirange.

    Returns
    Type Description
    NpgsqlRange<><T>

    The smallest range that includes the entire multirange.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Computes the smallest range that includes the entire multirange.

    Declaration
    public static NpgsqlRange<T> Merge<T>(this NpgsqlRange<T>[] multirange)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange

    The multirange.

    Returns
    Type Description
    NpgsqlRange<><T>

    The smallest range that includes the entire multirange.

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange overlaps another multirange.

    Declaration
    public static bool Overlaps<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The first multirange.

    List<><NpgsqlRange<><T>> multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange overlaps another range.

    Declaration
    public static bool Overlaps<T>(this List<NpgsqlRange<T>> multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange

    The multirange.

    NpgsqlRange<><T> range

    The range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange overlaps another range.

    Declaration
    public static bool Overlaps<T>(this NpgsqlRange<T>[] multirange, NpgsqlRange<T> range)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange

    The multirange.

    NpgsqlRange<><T> range

    The range.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

    Determines whether a multirange overlaps another multirange.

    Declaration
    public static bool Overlaps<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The first multirange.

    NpgsqlRange<><T>[] multirange2

    The second multirange.

    Returns
    Type Description
    bool

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static List<NpgsqlRange<T>> Union<T>(this List<NpgsqlRange<T>> multirange1, List<NpgsqlRange<T>> multirange2)
    Parameters
    Type Name Description
    List<><NpgsqlRange<><T>> multirange1

    The first multirange.

    List<><NpgsqlRange<><T>> multirange2

    The second multirange.

    Returns
    Type Description
    List<><NpgsqlRange<><T>>

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

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

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

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

    Declaration
    public static NpgsqlRange<T>[] Union<T>(this NpgsqlRange<T>[] multirange1, NpgsqlRange<T>[] multirange2)
    Parameters
    Type Name Description
    NpgsqlRange<><T>[] multirange1

    The first multirange.

    NpgsqlRange<><T>[] multirange2

    The second multirange.

    Returns
    Type Description
    NpgsqlRange<><T>[]

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

    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team