SqlMapperAsTableValuedParameter Method |
Used to pass a DataTable as a TableValuedParameter
Namespace: DapperAssembly: VirtualRadar.Database (in VirtualRadar.Database.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static SqlMapperICustomQueryParameter AsTableValuedParameter(
this DataTable table,
string typeName = null
)
<ExtensionAttribute>
Public Shared Function AsTableValuedParameter (
table As DataTable,
Optional typeName As String = Nothing
) As SqlMapperICustomQueryParameter
public:
[ExtensionAttribute]
static SqlMapperICustomQueryParameter^ AsTableValuedParameter(
DataTable^ table,
String^ typeName = nullptr
)
[<ExtensionAttribute>]
static member AsTableValuedParameter :
table : DataTable *
?typeName : string
(* Defaults:
let _typeName = defaultArg typeName null
*)
-> SqlMapperICustomQueryParameter
Parameters
- table
- Type: System.DataDataTable
- typeName (Optional)
- Type: SystemString
Return Value
Type:
SqlMapperICustomQueryParameterUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also