3 ms·
You could easily build a unit test that compares the set of exposed properties of your model class with the columns of the table in your test DB.
by majewsky 11y ago
You could easily build a unit test that compares the set of exposed properties of your model class with the columns of the table in your test DB.
- qaq 11y agoThat's not really a unit test and not really a good idea to do it this way. You'll still have to keep model in sync with schema you'll just know when they diverge.