How can I fix it so that it accepts the value of null .
otra2 = nw12Reader.GetString(nw12Reader.GetOrdinal("SI_Ubicacion_Fisica"));
Thanks for the help
How can I fix it so that it accepts the value of null .
otra2 = nw12Reader.GetString(nw12Reader.GetOrdinal("SI_Ubicacion_Fisica"));
Thanks for the help
You must use the function
IsDBNull
, as follows:Hello, you could use a ternary, it is a simplified if, it is clear that you need a string even if it is empty, your code would look like this:
c# .net