Table of Contents

Class TableValuedParameterHelper

Namespace
TimeCockpit.Data.Database
Assembly
TimeCockpit.Data.dll

Contains helper methods for working with table valued parameters.

public class TableValuedParameterHelper
Inheritance
Object
TableValuedParameterHelper
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

TableValuedParameterHelper()

public TableValuedParameterHelper()

Methods

BuildDataTable(Object[])

Builds a System.Data.DataTable for the given values.

public static DataTable BuildDataTable(object[] values)

Parameters

values Object[]

The values to fill the table with.

Returns

DataTable

Returns the System.Data.DataTable.

GetTypeName(String, DataTable)

Creates the qualified type name for a table.

public static string GetTypeName(string schema, DataTable table)

Parameters

schema String

The schema name.

table DataTable

The table.

Returns

String

Returns the name of the type to use for a parameter.

Remarks

The type name is stored in the table name (done correctly if table was created using BuildDataTable(Object[])).