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
formatQueryFormatThe QueryFormat to extend.
valuesIEnumerable<int>The values to be generated in the specified format for the query fragment.
distinctboolif set to
true,valueswill 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
formatQueryFormatThe QueryFormat to extend.
valuesIEnumerable<long>The values to be generated in the specified format for the query fragment.
distinctboolif set to
true,valueswill 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
formatQueryFormatThe QueryFormat to extend.
valuesIEnumerable<string>The values to be generated in the specified format for the query fragment.
distinctboolif set to
true,valueswill be filtered for doublets.
Returns
- string
A query fragment in the desired format.
Exceptions
- ArgumentNullException
valuescannot be null.- ArgumentException
valuescontains no elements.