Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Im thinking about using NHIbernate, what affect will it have on my design/implementation decisions?

0
Posted

Im thinking about using NHIbernate, what affect will it have on my design/implementation decisions?

0

You do not have to subclass any kind of persistent base class to make objects persistable. You do not have to decorate all your classes with attributes. You do not have to provide any parameterised constructor in your business objects so that NH can create them You do have to provide an default (empty) constructor, with any visibility (public, private etc) You do have to provide property get/sets for all persisted fields, with any visibility you like …Apparently, these last 2 limitations are set to change I think. It must be possible in .NET, as the DADO mapper works this way. Personally, I think they’re a small price to pay anyway. I can unit test how my business objects behave without even having to hit the database, simply by not using NHIbernate in those tests ( I have other tests to prove that my mapping files are set up ok)… You do have to create an XML file that defines how things work. …but this is really easy. AND, there are tools around to help you auto-generate your XM

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123