Hello guys,

I have an query (QueryOver<T, T>) with NHibernate and I would like to
concat two entity properties (for sample: FirstName + space + LastName)
into a single property (FullName) on my DTO (like as alias...). I have this
method it:

public static IProjection Concat(IProjection[] projections)
{
     return Projections.SqlFunction("concat",
                   NHibernateUtil.String,
                   projections);
}

I know I can use the "As(string)" to define an alias but I don't have this
method in the result of Projections.SqlFunction. Is there any way to do it?

It is a generic method and I'm using "magic strings" to define a lot of
things in the query.

Thank you.


-- 
______________________________________
Felipe B Oriani
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to