I have a Web service that receive one list, in some cases some columns can be null and when I try insert Null values in my List I got a error. "Column is null". How I Can Insert NULL value in list if some column is null??
dr = cmd.ExecuteReader();
List<ClientData> myList = new List<ClientData>();
while (dr.Read())
{
ClientData client = new ClientData();
client.clientId = dr.GetString(0);
client.ClientName = dr.GetString(1); **---> NULL VALUE**