Table of Contents

Class QueryFormatExtensions

Namespace
Cuemon.Extensions.Data
Assembly
Cuemon.Extensions.Data.dll

Extension methods for the QueryFormat enum.

public static class QueryFormatExtensions
Inheritance
QueryFormatExtensions

Methods

Embed(QueryFormat, IEnumerable<int>, bool)

Embeds the specified int sequence within the desired query fragment format.

public static string Embed(this QueryFormat format, IEnumerable<int> values, bool distinct = false)

Parameters

format QueryFormat

The QueryFormat to extend.

values IEnumerable<int>

The values to be generated in the specified format for the query fragment.

distinct bool

if set to true, values will be filtered for doublets.

Returns

string

A query fragment in the desired format.

Embed(QueryFormat, IEnumerable<long>, bool)

Embeds the specified long sequence within the desired query fragment format.

public static string Embed(this QueryFormat format, IEnumerable<long> values, bool distinct = false)

Parameters

format QueryFormat

The QueryFormat to extend.

values IEnumerable<long>

The values to be generated in the specified format for the query fragment.

distinct bool

if set to true, values will be filtered for doublets.

Returns

string

A query fragment in the desired format.

Embed(QueryFormat, IEnumerable<string>, bool)

Embeds the specified string sequence within the desired query fragment format.

public static string Embed(this QueryFormat format, IEnumerable<string> values, bool distinct = false)

Parameters

format QueryFormat

The QueryFormat to extend.

values IEnumerable<string>

The values to be generated in the specified format for the query fragment.

distinct bool

if set to true, values will be filtered for doublets.

Returns

string

A query fragment in the desired format.

Exceptions

ArgumentNullException

values cannot be null.

ArgumentException

values contains no elements.