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

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -