c# - Import schemas / procedures from SQL Server 2012 database into LocalDB for unit-testing -
i'm pretty new unit-testing. hope can ideas guys how can solve "problems".
here want do:
we have sql server 2012 databases. unit-testing in visual studio 2012, want programmatically create localdb
has same tables / functions / procedures "normal" databases.
but tables in localdb
should empty , populated data (only data needed test) in unit-tests (so after every test localdb
empty)
have @ http://dbsourcetools.codeplex.com/
designed purpose - re-create instance of database locally.
point 2012 databases, , script entire database schema disk. can use run these scripts in correct order re-create database. can select data tables include ( config data ).
Comments
Post a Comment