New to params object[]...and would like to try a suggestion from Returning a DataTable using Entity Framework ExecuteStoreQuery
How to pass these parameters (guid gId, string sName
) to a stored procedure using Entity Framework? This is what I want to try, cause, I need to return a data table.
public DataTable ExecuteStoreQuery(string commandText, params Object[] parameters)
{
DataTable retVal = new DataTable();
retVal = context.ExecuteStoreQuery<DataTable>(commandText, parameters).FirstOrDefault();
return retVal;
}