Skip to content

Commit 908f657

Browse files
committed
2 parents 12df327 + cc2d67a commit 908f657

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: 8.0.x
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
- name: Build
26+
run: dotnet build --no-restore
27+
- name: Test
28+
run: dotnet test --no-build --verbosity normal

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
11
# SQL-LocalDB-On-ARM
2-
A package that enables SQL Server LocalDB on ARM based Windows systems without using containers.
2+
A package that enables SQL Server LocalDB on ARM-based Windows systems without using containers.
3+
4+
## Usage
5+
This can be inserted into your startup. If you are not using an ARM processor or not using LocalDB in your connection string this will simply return your connection string. This way some of the people on the team can use an ARM system without impacting others.
6+
7+
```
8+
using IntelliTect.LocalDbOnArm;
9+
...
10+
// Your connection string typically obtained from settings.
11+
string connectionString = "MyConnectionString"
12+
connectionString = LocalDbOnArm.UpdateConnectionString(connectionString);
13+
```
14+
## How it works
15+
1. Detect if the connection string is using localdb
16+
2. Detect if the OS is ARM
17+
3. Start LocalDB if it isn't running
18+
4. Get the named pipe for LocalDB
19+
5. Update the connection string with the named pipe.

0 commit comments

Comments
 (0)