I have a dynamic stored procedure with two parameters and I can`t add to the model because it has no columns defined.
Any idea how I can get the data into a DataSet.
Tanks
I have a dynamic stored procedure with two parameters and I can`t add to the model because it has no columns defined.
Any idea how I can get the data into a DataSet.
Tanks
I didn't fully understand what you were after, so I have assumed that you don't know how to pass parameters to stored procedure in EF4.1 Code first.
SqlParameter customerIdParam = new SqlParameter("@customerId", customerId);
Customer customer = context.Database.SqlQuery<Customer>("P_FindCustomer @customerId", customerIdParam).FirstOrDefault();
There was a similar question a while ago.