I'm currently using a stored procedure to look up the name of a stored procedure based on a primary key in my database. I execute this initial stored procedure using LINQ to SQL. Once I have the stored procedure name I'm then using the following code to execute the stored procedure.
DbContext.ExecuteQuery(returnType, retrievedStoredProcedureName, new object[] {parameters});
The problem that I have now is that I do not know what parameters are required and what the data type is. Is there anyway to accomplish this without using SqlCommandBuilder.DeriveParameters()
?