Hello,

I'd like use the same method for several type, I have this

I have this

        public IList<myType> Get(Type myType, string propertyName, object
propertyValue)
        {
            return this.session.CreateCriteria(myType)
                .Add(NHibernate.Criterion.Restrictions.Eq(propertyName,
propertyValue))
                .List<myType>();
        }

I have 2 erros : type our namespace "myType" could not be found.

Could you help me ?

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