I'm very new to Fluent NHibernate but I love it so far.  I'm running
into a problem getting FNH to ignore the base class in another
assembly.

I've tried watching the calls to ShouldMap() and it's not asking about
the base class, I've also tried to use .IgnoreBase<DataObject> and it
still wants to map it.

I'm getting this error:
 ---> FluentNHibernate.Visitors.ValidationException: The entity
'DataObject' doesn't have an Id mapped. Use the Id method to map your
identity property. For example: Id(x => x.Id).

Here's my Fluently.Configure()
.Mappings(m => m.AutoMappings
.Add(AutoMap
.AssemblyOf<Project>(new ToDoIt2.DB.AutoMapping())
.IgnoreBase<DataObject>()
.Conventions.Add<myPrimaryKeyConvention>()
.Conventions.Add<myForeignKeyConvention>()
)
);

Update: Turns out that adding the full path (pklib.DataObject) instead
of just DataObject causes it to be ignored properly.  Anyone know why?

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en.

Reply via email to