I have an HQL query that includes a fully-qualified type name
OsmTaskDecorator:
IQuery query = this.session.CreateQuery(
@"select task.DueAt
from XYZ.Domain.Osm.Practicing.OsmTaskDecorator decorator
join decorator.task as task
join decorator.Grades as report
join report.grades as grade
where grade.Employee = :employee
and grade.Skill = :skill
and grade.IsPass = true
order by task.DueAt desc")
.SetParameter<Employee>("employee", employee)
.SetParameter<Skill>("skill", skill);
This is a magic string - if I rename or move OsmTaskDecorator to
another namespace, this HQL will break. Is there any way to substitute
this type name in from typeof(OsmTaskDecorator).Name, other than
String.Format?
Cheers,
Rich
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---