I am trying to get data from a PostGIS datatable using .NET, pass it to javascript, create a layer in OpenLayers and add the PostGIS data to the layer. I can successfully query from the PostGres/PostGIS table using the following SQL;
SELECT ""tract_name"", ST_AsGeoJSON(""geom"") FROM the_layer...