Skip to content

Commit

Permalink
v1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Spendolini authored and Brian Spendolini committed Aug 5, 2024
1 parent e29014e commit ddb4ff5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/3-Data-API-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,22 @@ Also, Data API builder is Open Source and works on any platform; on-premises, in
touch .env
```
> [!IMPORTANT]
> Remeber to use the ADO.NET connection string in the .env file.
1. Now find the **.env** file in the file navigator and click it to bring it up in the code editor.
![A picture of clicking the .env file in the file navigator and click it to bring it up in the code editor](./media/ch3/dab0a1.png)
3. And then add the connection string to the environment file from Visual Studio Code, setting the `MSSQL` variable to the connection string you obtained in the previous step:
1. Add the connection string to the environment file from Visual Studio Code, setting the `MSSQL` variable to the connection string you obtained in the previous step:
```text
MSSQL='THE ADO.NET CONNECTION STRING YOU COPIED FROM RUNNING sqlcmd config connection-strings --database devDB | grep ADO.NET'
```
![The connection string saved in the environment file](./media/ch3/dab0.png)
Then, you can use the Data API Builder (DAB) CLI to initialize the configuration file:
> [!IMPORTANT]
> Remeber to use the ADO.NET connection string in the .env file.
5. Then, you can use the Data API Builder (DAB) CLI to initialize the configuration file:
```bash
dab init --database-type "mssql" --connection-string "@env('MSSQL')" --host-mode "Development" --rest.path "rest"
Expand Down
Binary file added docs/media/ch3/dab0a1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ddb4ff5

Please sign in to comment.