Is it possible to dynamic load my class for nhibernate?

something like:


  assem= Assembly.LoadFrom ("TestNamespace.classA.dll");

  Type type = assem.GetType("classA");

  Object  obj =Activator.CreateInstance(type); //I am not sure how to
get the "T"

  ICriteria targetObjects = session.CreateCriteria(type);

  IList<obj> =targetObjects.List<obj>();


I researched for long time for the internet, but I couldn't find a way
to load my dynamic class to the IList<T>

Anyone has idea on how to do this? I really appreciate your kindly
help in advance!

Cheers,
Ka
--~--~---------~--~----~------------~-------~--~----~
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