Click or drag to resize
SqlHelperBuildBigIntTable Method
Gets a table-valued parameter for database calls. Is intended for usage with [Type_CMS_BigIntTable] database type.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static IEnumerable<SqlDataRecord> BuildBigIntTable(
	IEnumerable<long> longs
)

Parameters

longs
Type: System.Collections.GenericIEnumerableInt64

Return Value

Type: IEnumerableSqlDataRecord
Remarks
Returns empty enumeration if there are no values provided. The database doesn't ever expect to get empty table, it needs not to add the parameter at all. So when calling this method to add an parameter to a query, check this for an empty enumeration at first and do not add the parameter at all in that case.
See Also