I am using the Devart EF-4 provider for PostgreSQL.
In one of my db tables, I have a column called the_geom which is a PostGis Geometry type column holding a polygon. Long story short, PostGis uses its own binary format to store geometry values, so for it to be usable in my application i need to convert it to Well-Known-Binary (WKB) which is a standardized binary representation of geometry. This can be achieved quite easy in standard SQL by selecting in with
select asbinary(the_geom) from mytable
The final question is this: How do I, in Entity Framework, specify to use the asbinary() function to select the_geom column?