Tag Info

New answers tagged

1

Regardless of what you use, you need to make sure you lock the single record in your settings table for the shortest time possible. It is the bottle-neck in all of your receipt creation. Because of this, I would do this in 3 steps with the first 2 wrapped in a transaction (I believe Nhibernate can do that.). Create Receipt Record Start Transaction: Update ...


2

Your post gives me the (maybe false?) impression that you are questioning the use of NHibernate in full, because of a minor problem which cannot be perfectly solved by an ORM directly. Actually, in such a situation I would try to create a workaround for the minor problem (maybe I got you wrong, and that is what you already have in mind). For the case you ...


1

I think you might like the query object pattern I wrote for NHibernate:https://github.com/shaynevanasperen/NHibernate.Sessions.Operations It makes it easy to build and consume your own query objects, with support for "3rd level" caching and query-result transformation. It provides an IDatabases interface, which you use to invoke queries and commands. If you ...


1

Working with a framework is all about trade-offs: you lose some capabilities or flexibility in one area to gain an advantage that matters to you. For example: Reporting tools might offer different export capabilities out-of-the-box: you can export any report to PDF or XLS or CSV or HTML or... Reporting tools might offer scheduling and the ability to run ...



Top 50 recent answers are included