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.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to