[nhusers] Re: when and why NHibernate mapping type request virtual methods ?

2009-08-28 Thread
" correction here... > The constraints if about the DynamicProxy system. > > -- > Fabio Maulo > > > > > -- 江名峰 msn:jmfbluew...@hotmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[nhusers] Re: when and why NHibernate mapping type request virtual methods ?

2009-08-28 Thread
Thank you,I think I must do some work for that. 2009/8/29 Raul Carlomagno > > nh constraints that your methods and properties should be virtual when > you do lazy load, because nh needs to build proxies and redefine > methods and properties > > On Aug 28, 11:10 pm, 江名峰 w

[nhusers] when and why NHibernate mapping type request virtual methods ?

2009-08-28 Thread
Dear all When and why NHibernate mapping class request virtual methods? There is no virtual methods in my mapping classes,But the application runs fine. -- Hamlet.Jiang msn:jmfbluew...@hotmail.com --~--~-~--~~~---~--~~ You received this message because you are su

[nhusers] Re: Paging with SQL 2000

2009-08-21 Thread
uery. An store procedure is > just a compiled query. And there is no-way that NHibernate will work with a > SP to paginate. > > Just wondering what exactly you mean with this approach. > > Cheers > > 2009/8/21 江名峰 > >> the best way to do paging is using Stored

[nhusers] Re: Paging with SQL 2000

2009-08-21 Thread
-- >>> >>> >>> Here is the query generated for SQL 2000: >>> --- >>> select top 23 regiaofisc0_.ReF_Cod as ReF1_0_, regiaofisc0_.ReF_Des as >>> ReF2_0_ from tblRegiaoFiscal regiaofisc0_ >>

[nhusers] Re: Use NHibernate.Linq to get single entity with eager load

2009-08-15 Thread
ith NH.Linq for the lack of docs. > > > Blog: http://www.cnblogs.com/JeffreyZhao/ > Twitter: http://twitter.com/jeffz_cn > > *From:* 江名峰 > *Sent:* Saturday, August 15, 2009 1:21 PM > *To:* nhusers@googlegroups.com > *Subject:* [nhusers] Re: Use NHibernate.Linq to get single entity

[nhusers] Re: Use NHibernate.Linq to get single entity with eager load

2009-08-14 Thread
t; exception throwed but I got a Product instance contains _only 1_ Property > instance - it should be 2 actually. > > But the interesting thing is, with the help of SQL Profiler, I found that > the SQL queries generated by Criteria API and LINQ are