c# - Testing nHibernate mappings -
I have just started a new project using mHibernate and Fluent for mapping. The architect has sent me a database, out of which I have created several hundred unit sections and similar fluent mapping files. I know that this is not the ideal DDD method of working, but life is hardly ideal.
What I want to do is test that all the mapping is correct, the columns are mapped right, vanity, many more etc. Is there some automated or easy way to do this? I have just considered writing a simple repository which loads a record from each unit and ensures that no exceptions have been made, but they do not have any data in most tables.
Look at Fluent NIBnet It is hardly true, but it handles many simple cases well .
Comments
Post a Comment