Hi,
I am a newby to NHibernate.
I am wonderring wether the ISession.Save(String entityName, Object obj)
should use the EntityPersister for the given entityName instead of the
EntityPersister for obj.GetType()?
I checked the NHibernate source code in AbstractSaveEventListener.cs :
public class AbstractSaveEventListener {
protected virtual object SaveWithGeneratedId(object entity, string
entityName, object anything, IEventSource source, bool
requiresImmediateIdAccess)
{
IEntityPersister persister = source.GetEntityPersister(entity);
...
}
}
I think that NHibernate should not assume the entityName is always the same
as obj.GetType().
By the way, could anybody kindly explain what the "entityName" really is?
Yaojian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---