I have a table of 3 columns along with a primary key:
create table tempTable
(
id int primary key identity,
name nvarchar(50),
gender nvarchar(50),
city nvarchar(50)
)
And there is a list of string like this:
List<String> list = new List<String>() { "name", "male", "city" };
I want this list into the tempTable
. How can I do that?