Map that column.in the filed initializer, set to that constant value. On Fri, Dec 5, 2008 at 6:32 PM, alunharford <[EMAIL PROTECTED]>wrote:
> > Hi all, > > I have an old database, and some applications integrate at the DB > level :-( > I'm inserting some entities into the database with NHibernate and they > should have a constant value for a particular column, and I don't care > about that column when I read records. > > Is there a way to express this in an NHibernate mapping file, or do I > have to make a field in my entity and just not expose it to the rest > of the application? > > Many thanks, > > Alun Harford > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
