Note. This is the next question for this previous question .
Inspired by this blog post , I'm trying to build a free way to check my mappings with EF4 code only. However, I was stuck almost instantly ...
To implement this, I also need to implement the method CheckProperty, and I'm completely unsure how to save the parameters in the class PersistenceSpecificationand how to use them in VerifyTheMappings.
Also, I would like to write tests for this class, but I'm not quite sure how to do this. What am I testing? And How?
Any help is appreciated.
Update: . I familiarized myself with the Fluent NHibernate source code implementation, and it would seem pretty simple to take the source and adapt it to the Entity Framework. However, I cannot find anything about changing and using parts of the source in the BSD license . Would you copy the code into your project and change everything that I would like to satisfy my needs, to be legal for non-commercial private or open projects? Will it be for commercial projects?
source
share