views:

153

answers:

0

I'm using PostGis to store some spatial data. I used ActiveRecord to retrive data from db, and I used [Property (Formula = "asbinary(shape)")] on property where geometry was stored (property type was byte[]). However this doesn't work when inserting data. So I figured out to write custom insert (and update) queries to solve the problem. I saw it's posiible in NHibrnate, but i don't know how to do it in AR with attributes. Or maybe there is another way to solve the saving/updating problem? (I don't want to use NHSpatial)