Verifying NHibernate Entities Contain Only Virtual Members(trycatchfail.com)
submitted by
Matt_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.
|category: Tips & Tricks
|Views: 0
tags:
Tips another
Everyones tags:
Your Tags: