Class TableValuedParameterHelper
- Namespace
- TimeCockpit.Data.Database
- Assembly
- TimeCockpit.Data.dll
Contains helper methods for working with table valued parameters.
public class TableValuedParameterHelper
- Inheritance
-
ObjectTableValuedParameterHelper
- 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
valuesObject[]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
schemaStringThe schema name.
tableDataTableThe 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[])).