G
G Selva
Guest
Hi every one,
I have issue with type value to data-table conversion. Could you plz suggest the idea. below I have mentioned my sample method. It returns me the empty data-table. Could anyone help me on this.
public DataTable CreateSqlParameter1<T>(string parameterName, T parameterValue, ParameterDirection parameterDirection = ParameterDirection.Input)
{
if (typeof(T) == typeof(DataTable))
{
new DataTable(parameterValue.ToString());
}
}
Continue reading...
I have issue with type value to data-table conversion. Could you plz suggest the idea. below I have mentioned my sample method. It returns me the empty data-table. Could anyone help me on this.
public DataTable CreateSqlParameter1<T>(string parameterName, T parameterValue, ParameterDirection parameterDirection = ParameterDirection.Input)
{
if (typeof(T) == typeof(DataTable))
{
new DataTable(parameterValue.ToString());
}
}
Continue reading...