I am currently developing an application in c# where I have a string array NameArray and recorded the number of values in the array as count. I need to pass this to my sql server database where I will store each of the value of the array as individual records(names) into a Table. How do I write a stored procedure for doing such a operation.
Furthermore the name of the entity connection string is MyEntities and I have created its object as Entityobj.
The code I am trying to execute in c# is something like this
public void Method1(string[] NameArray, int count)
{
Entityobj.CallSproc(NameArray,count);// Here I am passing the values to stored procedure
}
How do I make the stored procedure receive the values and store them as individual records?