Yes composite keys can be managed in NHibernate http://nhforge.org/blogs/nhibernate/archive/2010/06/30/nhibernate-and-composite-keys.aspx
<http://nhforge.org/blogs/nhibernate/archive/2010/06/30/nhibernate-and-composite-keys.aspx>However, if there is any possible way to avoid them it is recommended to do so. If all your keys are composite keys then NHibernate will not be the most effective means of accessing an RDBMS. John Davidson On Thu, Feb 17, 2011 at 6:52 PM, Sandy <[email protected]> wrote: > Hi, > > > We are planning to use nHibernate in our new project. We want to know > is it possible to insert composite key into database using nHibernate? > We want to send all the key values from C# code. > > > Thanks > Sandy > > -- > 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. > > -- 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.
