0
comment
on 4/17/2011 6:40 AM
What strategies do I know of on how to test your code depending on a database? Using TransactionScope so that you can roll back any changes done by tests. Setting up a fresh database with the same schema. Using NHibernate SchemaExport(cfg).Execute to export an existing schema onto the new database. Run your migrations to set the database in the correct state. Use Code First, auto migrations or whatchamacallit call it. That is, let the ORM generate the tables and columns based upon your data objects. For [...]
>> Read the full article on assertfail.gewalli.se
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper