How can I pass a list of object in a SQL Procedure with SQL Server 2008 ?
I want to avoid this :
foreach (var item in itemList)
{
myContext.ExecuteStoreCommand("EXEC MyAtomicProc ... item ...);
}
I want to do the foreach
in a store procedure.
How can I pass a c# list of object and execute this procedure in EF :
myContext.ExecuteStoreCommand("EXEC MyGlobalProc ... itemList ...);