In Transact-SQL I have the input parameter to the store procedure
@DataTable InputTabel READONLY,
And the "InputTabel" is defined as:
CREATE TYPE InputTabel AS TABLE
(
ID INT NULL,
RESULT_INDEX INT NULL
)
And on the C# side I use this code to define the parameter:
SqlParameter parameter = new SqlParameter( );
parameter.ParameterName = "@DataTable ";
parameter.SqlDbType = System.Data.SqlDbType.Structured;
parameter.TypeName = "InputTabel";
parameter.Value = theInputTable;
Where theInputTable is defined as:
DataTable theInputTable = new DataTable("TheInputTableName");
theInputTable.Columns.Add( "ID", typeof( Int32 ) );
theInputTable.Columns.Add( "RESULT_INDEX", typeof( string ) );
I now have to transfer this approach to MySQL and wounder how do I do that? Both on C# side and on the server side.