Verifying NHibernate Entities Contain Only Virtual Members(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 10 months, 27 days ago

One requirement that NHibernate imposes on your object model is that all public members must be virtual in order to support lazy loading. I got really tired of getting a yellow-screen-of-death while working on Fail Tracker every time I added a new member to my domain and forgot to mark it as virtual. So, I added a simple NUnit test to enforce the convention.

add a comment |category: |Views: 0

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story