I would like to pass a List<> of object say List<Student>
to the parameter of stored proc and have the data stored in corresponding fields in the database. How can I do this? I use SQL Server 2005.
So if the database Table has fields StudentId,Name,Age and the object List<Student>
has the same properties containing the data, then the data should go to the corresponding fields in Table.
Please advice with code. Thanks in advance.