It never calls IsId with a member representing the base Id property.
Is that what you are asking?

TIm

On Sep 7, 2:46 pm, James Gregory <jagregory....@gmail.com> wrote:
> What do you see if you debug your config?
>
> On Tue, Sep 7, 2010 at 7:31 PM, Tim Scott <tsc...@lunaversesoftware.com>wrote:
>
> > Auto mapping noob here.  I'm getting this error:
>
> > The entity 'OrderTicket' doesn't have an Id mapped. Use the Id method
> > to map your identity property. For example: Id(x => x.Id)
>
> > Here's my mapping:
>
> >  var autoMapping = AutoMap.Assemblies(autoMappingsConfig,
> > coreAssembly)
> >      .IgnoreBase<BaseEntity>()
> >      .Conventions.AddAssembly(coreAssembly);
>
> > OrderTicket derives from the abstract BaseEntity.  BaseEntity has the
> > Id property:
>
> >  public virtual int Id { get; private set; }
>
> > In my auto mapping config file, I have this:
>
> >  public override bool IsId(Member member)
> >  {
> >      return member.Name == "Id";
> >  }
>
> > What am I missing???
>
> > --
> > 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.

Reply via email to