Yep, NHibernate is just for querying the database, nothing else.
Beware of returning entities from your web service: you should use DTOs 
instead of the real entities, this way you can return a domain model more 
suitable for your needs and have everything loaded upfront, avoiding lazy 
loading.

RP

On Tuesday, May 14, 2013 12:57:59 PM UTC+1, Deepz wrote:
>
> Hi Kumar,
>
> Your understanding is wrong. Nhibernate is used  query the underlying 
> database.
> Off-course you can expose your data layer as web service , which in turn 
> has the Nihbernate stuff.
>
> Thanks
>
>
>
>
> On Tue, May 14, 2013 at 12:35 PM, Raja kumar <[email protected]<javascript:>
> > wrote:
>
>> We have requirement where we need to call a web service which is used to 
>> perform all the database operations from our ASP.Net MVC application.
>>  
>> Accessing the web service should be done via NHibernate.
>>  
>> Can we use NHibernate to access a web service?
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to