I'm using PostGis to store some spatial data. I used ActiveRecord to 
retrive data from db, and I used mapping similar to this:

[ActiveRecord (Table = "drawings" )]
public class DrawingAR
    {
        [PrimaryKey (Generator = PrimaryKeyType.Sequence, SequenceName = 
"id_seq")]
        public int ID { get; internal set; }


        [Property (Formula = "asbinary(shape)")]
        public byte[] Shape { get; set; }
    }

 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)
Thanks in advanced
Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to