Hi everyone, I am persisting a common domain over two different database storages: one of them is a standard SqlServer instance and the other is a SqlCe file. The two have the exact same database schema. I mapped my domain using fluentNH, the mappings are in common for the two databases. I have two different SessionFactories, one for each storage. Problems arise when i try to do something like the following:
Entity myEntity = firstSession.Get<Entity>(1); firstSession.Evict(myEntity); secondSession.Lock(myEntity, LockType.None); secondSession.Save(myEntity); secondTransaction.Commit(); Entity has a collection with cascade = AllDeleteOrphan and, while entity gets persisted correctly in the second database, all the entities in the collection are not saved. The collection is not lazy loaded. What am I doing wrong? Thanks in advance! Andrea -- You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en.
