Skip to content

Commit

Permalink
Getting started - issue #3 (#5)
Browse files Browse the repository at this point in the history
* Getting started - issue #3

* Update README.md

updated with the nuget dependency

* Minor tweaks.
  • Loading branch information
karpikpl committed Jan 10, 2022
1 parent 6142d38 commit 8cecb13
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ Traditionally, a [Data-tier Application (DAC)](https://docs.microsoft.com/en-us/

<br/>

## Getting started

The easiest way to get started is to clone the repository and execute `DbEx.Test.Console` project, this will create a database with data.

``` bash
DbEx.Test.Console git:(main)> export cs="Data Source=localhost, 1433;Initial Catalog=DbEx.Console;User id=sa;Password=Xxxxxx@123;TrustServerCertificate=true"
DbEx.Test.Console git:(main)> dotnet run -- -cv cs all
```

Next, create your own console app, follow the structure of `DbEx.Test.Console` project, add reference to https://www.nuget.org/packages/DbEx and your SQL scripts.

Currently, the easiest way of generating scripts from an existing database, is to use the `Generate Scripts` feature of SQL Server Management Studio and copy its output.

<br/>

### Commands (functions)

The _DbEx_ [`DatabaseMigratorBase`](./src/DbEx/Migration/DatabaseMigratorBase.cs) provides the base database provider agnostic capability, with the [`SqlServerMigrator`](./src/DbEx/Migration/SqlServer/SqlServerMigrator.cs) providing the specific Microsoft SQL Server implementation, that automates the functionality as specified by the [`MigrationCommand`](./src/DbEx/Migration/MigrationCommand.cs). One or more commands can be specified, and they will be executed in the order listed.
Expand Down

0 comments on commit 8cecb13

Please sign in to comment.