hi, let me the detail

for example:

//register entity type with additionalInterfaces
container.Register(Component.For<Schedule>()
                                    .Proxy.AdditionalInterfaces(typeof
(IEditableSchedule)).LifeStyle.Transient);

//new a object by IOC
var newSchedule = container.Reslove<Schedule>() as IEditableSchedule;
newSchedule.Start = new DateTime("2009/8/1");// set some properties
...

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


Before i had a conversation with "jfromaniello ", he told me
Nhibernate can't guess entity 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