The database for project drafter
- SQL Server 2014 or 2016
- Visual Studio
- Open project in Visual Studio
- Publish Database (you can use
DrafterDatabase.publish.xml
)- at this point, your local database should be created
- the database should also have the seeded data
- Open up SQL Server Object Explorer in Visual Studio
- Navigate to
SQLServer > (localdb)\MSSQLLocalDB
(or whatever server you deployed the database to)
Query away!
Sometimes it makes sense to add data right after a database creation. Create some post deployment scripts in the seeding
folder.
post deployment scripts can be created by adding a Post-Deployment Script item in the seeding folder (Add > New Item... > SQLServer > User Scripts > Post-Deployment Script
)