资 源 简 介
DbUp is an opinionated library for deploying and upgrading SQL server database schemas [the right way](http://www.paulstovell.com/database-deployment).
Getting started
DbUp ships as a .NET assembly that you reference from WPF, Windows Forms, ASP.NET or Console applications. You can use it to programmatically deploy your database.
Start with a fresh Visual Studio Console Application project, and reference DbUp.dll.
Add some SQL scripts, using numbers to put them in the right order:
Add the following code to Program.cs execute your scripts:
```
//Basic configuration:-
//This configuration assumes:
// * you are using SQL Server
// * want to log to the Console
var upgrader = new DatabaseUpgrader(
Settings.Default.MyDbConnectionStrin
文 件 列 表
src
BreakingChanges.txt
DbUp.5.0.ReSharper.user
DbUp.5.1.ReSharper
DbUp.6.0.ReSharper
DbUp.Console
app.config
DbUp.sln
DbUp.Specification
Concerning
AttemptingToUpgradeAnUptoDateDatabase.cs
DbUp.suo
DbUp
ConsoleLog.cs
Information
SolutionInfo.cs
nuget.config
Samples
SampleApplication
Program.cs
_ReSharper.DbUp
BuildScriptCache
.crc
7735c7c2.dat
7735c7c2.dat
lib
35
NSubstitute.dll
NUnit.2.5.9.10348
lib
nunit.framework.dll
NSubstitute.1.0.0.0
NSubstitute.1.0.0.0