Hello,
i am using Beta 2 of NHibernate 1.2.0 in an asp.net application. I have been using Beta 1 without problems - but after updating, some things don't work anymore:
I have a HQLQuery that is like this:
Code:
SELECT new TaskEvaluationData(t.Id, t.Title, t.StartDate, t.EndDate, t.CreationDate, Count(act), sum(act.PlannedWork), sum(act.PlannedWork), sum(act.PlannedCosts), sum(act.PlannedCosts)) FROM Task t INNER JOIN t.Actions act WHERE NOT t.InActive = true GROUP BY t.Id, t.CreationDate, t.Title, t.StartDate, t.EndDate ORDER By t.CreationDate
Don't wonder that I have sum(act.PlannedCosts) twice in this query - I overwrite the value later.
The class TaskEvaluationData has this constructor:
Code:
public TaskEvaluationData(int TaskId, string Title, DateTime? StartDate, DateTime? EndDate,
DateTime Date, int ActionCount,
float PlannedWork, float ActualWork, float PlannedCosts,
float ActualCosts)
: base(1, 0, PlannedWork, ActualWork, PlannedCosts, ActualCosts)
{
... }
In Beta 1 everything worked fine, but now this error occures:
Quote:
could not find constructor for: TaskEvaluationData [SELECT new TaskEvaluationData(t.Id, t.Title, t.StartDate, t.EndDate, t.CreationDate, Count(act), sum(act.PlannedWork), sum(act.PlannedWork), sum(act.PlannedCosts), sum(act.PlannedCosts)) FROM AMS.Core.Domain.Task t INNER JOIN t.Actions act WHERE NOT t.InActive = true GROUP BY t.Id, t.CreationDate, t.Title, t.StartDate, t.EndDate ORDER By t.CreationDate]
no appropriate constructor in class: AMS.Core.Evaluation.TaskEvaluationData
The strange thing is, that the constructor is present?!
Is this a beta2 issue or am I doing anything from?
Regards and thanks in advance,
Dominik[/quote]