using (SqlCommand command = new SqlCommand(query, connection)) { connection.Open(); command.CommandTimeout = 500; object result =command.ExecuteScalar();---error getting here model.StringID = result!=null? result.ToString():null; connection.Close(); return model; }
query
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)