well I see 2 problems 1. your mappings. I agree with the others. Your domain model should not reference foreign keys. that what the database is for. your domain model should reference entities. The mappings will handle converting the domain model to a database model. 2. passing entities over the wire; especially if they are associated with a session. I would use the "view model" approach and map the domain objects to context specific dtos and pass the dto over the wire.
-- 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.
