NHibernate returns entities or projections. If you don't use 'TYPE', as
seems to be your case, you should be able to catch the result as a scalar of
type string (you have to assign an alias to the result).

After do that, ask yourself why you are using NHibernate to get such result.

On Fri, Nov 5, 2010 at 7:33 PM, SAMI AKKUS <[email protected]> wrote:

> Yes, for example, can I use CreateSQLQuery("SELECT * FROM table FOR XML
> AUTO"). Then NH returns string or xml.
>
>
>
> 2010/11/6 Fabio Maulo <[email protected]>
>
>> directly from the RDBMS and not from your domain, right ?
>>
>>
>> On Fri, Nov 5, 2010 at 7:09 PM, SAMI AKKUS <[email protected]> wrote:
>>
>>> Yes i want to take data as XML and transform with xslt.
>>> 2010/11/5, Fabio Maulo <[email protected]>:
>>> > let me understand...
>>> > what you are looking for is create an XML directly from the data in the
>>> DB ?
>>> >
>>> > On Fri, Nov 5, 2010 at 3:51 PM, zamix <[email protected]> wrote:
>>> >
>>> >> How can I write queries in NH, which end with FOR XML AUTO or FOR XML
>>> >> RAW.
>>> >>
>>> >> --
>>> >> 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]<nhusers%[email protected]>
>>> <nhusers%[email protected]<nhusers%[email protected]>
>>> >
>>>  >> .
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/group/nhusers?hl=en.
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > Fabio Maulo
>>> >
>>> > --
>>> > 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]<nhusers%[email protected]>
>>> .
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/nhusers?hl=en.
>>> >
>>> >
>>>
>>> --
>>> 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]<nhusers%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/nhusers?hl=en.
>>>
>>>
>>
>>
>> --
>>  Fabio Maulo
>>
>> --
>> 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]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>
>  --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>



-- 
Fabio Maulo

-- 
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