Id(x => x.Id) .Column("PersonId") .GeneratedBy.Assigned();
From: http://wiki.fluentnhibernate.org/Fluent_mapping#Id You'll find lots of useful stuff on the wiki :) On Thu, Feb 25, 2010 at 8:16 AM, YankeeImperialistDog < webbuilder...@gmail.com> wrote: > I'm attempting to convert to fluent and ran into this mapping problem. > > the Person.hbm.xml has this > <id name="Id" column="PersonID" type="Guid"> > <generator class="assigned"></generator> > </id> > > the mapping i have is : Id(x => x.Id); which does not work > because the Column Id does not exist in the table. > > How can Id be mapped to PersonId? > > Thanks > KES > > -- > You received this message because you are subscribed to the Google Groups > "Fluent NHibernate" group. > To post to this group, send email to fluent-nhibern...@googlegroups.com. > To unsubscribe from this group, send email to > fluent-nhibernate+unsubscr...@googlegroups.com<fluent-nhibernate%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/fluent-nhibernate?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.