What I have:
session.Query<Symptom>().First();
What I am trying to do:
var className="Symptom"
session.Query<className>().First()
Is it possible to do this in some way? If yes where to look because I've tried with Type.GetType
etc, without success. And secondary question, I have to send via web request "type" that will be in that query syntax am I looking in good way? Or I am missing some point where I can just send somehow type from front-end to service and get data from database what I want. I am using that query to get data from Nhibernate, and I did not want to hardcode all possibile types that would come with request data.
EDIT:
When I try GetType I get:
cannot apply operator '<' to operands of type 'method group' and 'system.type'