Posted on: 6/16/2015 6:59:15 AM | Views : 676

hi all 
iam using postgres database
iam trying to retrieve box(geom) data in a textbox trough dataset
but in dataset data is disolaying as npgsgltypes.npgsqlbox instead of (231231.2432432,32424.1232432...........)
my code is
cmd = new Npgsql.NpgsqlCommand("select box(geom) from table where column=@queryName";) cmd.Parameters.AddWithValue("@queryName", queryName);
Ngsql.NpgsqlDataAdapter sda = new Npgsql.NpgsqlDataAdapter(cmd);
sda.Fill(ds); cmd.ExecuteNonQuery(); conn.Close(); return ds;

Go to the complete details ...