tag:blogger.com,1999:blog-3924739636407907202.post2094082467562469185..comments2023-10-07T05:59:41.036-03:00Comments on HunabKu: Repository or DAO?: DAOFabio Maulohttp://www.blogger.com/profile/13558454874302740335noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-3924739636407907202.post-43985734843656927152012-10-27T15:58:45.852-03:002012-10-27T15:58:45.852-03:00Hello. Nice post .. But i have a question. In disc...Hello. Nice post .. But i have a question. In disconnected environment i want for example to do something like a custom update. Update entity set col=true where colx=false and parent_id=2 .This would return how many changed. But using something generic like this how is it possible to do something like this? This matters especially when using a mvvc database like postgresql or oracle etc .. PGhttps://www.blogger.com/profile/08470472305639048109noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-70057992410571003792010-01-09T18:31:55.663-03:002010-01-09T18:31:55.663-03:00@Turin
I'm my company.
IMO you should handle ...@Turin<br />I'm my company.<br /><br />IMO you should handle the pagination in DAO and pagination info., as pageNum and pageSize, should be two of information of query-object.Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-19941461270529524872010-01-09T18:16:13.792-03:002010-01-09T18:16:13.792-03:00excellent post Fabio, you're a gem and you kno...excellent post Fabio, you're a gem and you know it. Just sometimes I feel you throw up very valuable info that few can understand.<br /><br />we all know that YOU know it ;) Being a bit more verbose would help, but then, It's free and I know you have your company.<br /><br />just one question, shouldn't Retrieve method on DAO layer return IQueryable instead of IEnumerable?<br /><br />Unknownhttps://www.blogger.com/profile/05515792680390427209noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-9890435089054741112009-11-23T14:30:09.525-03:002009-11-23T14:30:09.525-03:00That is not my post.
If you want know how I'm ...That is not my post.<br />If you want know how I'm checking the transaction usage the code is <a href="http://code.google.com/p/unhaddins/source/browse/trunk/uNhAddIns/uNhAddIns/SessionEasier/BasicTransactionProtectionWrapper.cs" rel="nofollow">here</a>.Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-39639307085842798792009-11-23T14:22:21.247-03:002009-11-23T14:22:21.247-03:00http://nhforge.org/blogs/nhibernate/archive/2009/0...http://nhforge.org/blogs/nhibernate/archive/2009/09/07/part-8-daos-repositories-or-query-objects.aspxUnknownhttps://www.blogger.com/profile/12300214730499044595noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-65076868206923603052009-11-23T13:55:45.183-03:002009-11-23T13:55:45.183-03:00Which post ?Which post ?Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-3756413420654634462009-11-23T13:53:02.732-03:002009-11-23T13:53:02.732-03:00Just a quick question, in the above post that you ...Just a quick question, in the above post that you linked, you are checking if transaction is null. I can never get Transaction to be null. Do we need to actually check if Trasaction.IsActive?Unknownhttps://www.blogger.com/profile/12300214730499044595noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-84136985983703459502009-09-21T17:31:09.436-03:002009-09-21T17:31:09.436-03:00I wrote these two post only because requested by s...I wrote these two post only because requested by some users.<br />I'm using DAOs, so far... and is well know as you can see here<br />http://nhforge.org/blogs/nhibernate/archive/2009/09/07/part-8-daos-repositories-or-query-objects.aspxFabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-32977523831320205192009-09-21T16:53:44.339-03:002009-09-21T16:53:44.339-03:00Great series... I know you are refering to Ayende&...Great series... I know you are refering to Ayende's take on Repository pattern.. Would you please give us your recommendation or what you generally use? I know it depends on the context but which one do you like most? Repository, DAO or Query Object approach like Ayende proposed..Unknownhttps://www.blogger.com/profile/01015398482515320414noreply@blogger.com