hi, let me tell the detail

container.Register(Component.For<Schedule>()
                                    .NhibernateEntity()
                                    .AddEditableBehavior()
                                    .AddNotificableBehavior()
                                    .Proxy.AdditionalInterfaces(typeof
(IEditableSchedule)).LifeStyle.Transient); // register a type to IOC

IEditableSchedule newSchedule = container.Relosve<Schedule>() as
IEditableSchedule;
newSchedule.Start = new Date("2009/8/27"); // set some property
....

session.SaveOrUpdate(newSchedule); // will throw No persistent for
[the Entity] Exception

Before have conversation with "jfromaniello", he told me the
Nhibernate can't guess the persister correctly.

Any solution? thanks





--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to