0

I was trying to get geometric value from DB.

SqlGeometry g = new SqlGeometry();
g.Read(new BinaryReader(reader.GetSqlBytes(2).Stream));

this code does not work when the field is null, gives exception.
I'm struggling to find a solution.
Does anybody know a solution?

Charlieface
  • 52,284
  • 6
  • 19
  • 43
shifat
  • 11
  • 3

0 Answers0