Skip to content

Commit ae8351d

Browse files
Merge pull request #14 from Stravaig-Projects/#9/create-nuget-package
#9: Get the project ready for publishing NuGet packages
2 parents 0c8dec3 + 45ec379 commit ae8351d

File tree

6 files changed

+27
-8
lines changed

6 files changed

+27
-8
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
A configuration provider that uses SQL Server as its backing store.
44

5-
5+
* [![Stravaig Configuration SQL Server Provider](https://github.com/Stravaig-Projects/Stravaig.Configuration.SqlServer/actions/workflows/build.yml/badge.svg)](https://github.com/Stravaig-Projects/Stravaig.Configuration.SqlServer/actions/workflows/build.yml)
6+
* ![Nuget](https://img.shields.io/nuget/v/Stravaig.Configuration.SqlServer?color=004880&label=nuget%20stable&logo=nuget) [View on NuGet](https://www.nuget.org/packages/Stravaig.Configuration.SqlServer)
7+
* ![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/Stravaig.Configuration.SqlServer?color=ffffff&label=nuget%20latest&logo=nuget) [View on NuGet](https://www.nuget.org/packages/Stravaig.ConfigurationSqlServer)
68

79
---
810

release-notes/wip-release-notes.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@
44

55
Date: ???
66

7-
### Bugs
8-
97
### Features
108

11-
### Miscellaneous
12-
13-
- #1: Initial set up
149
- #2: Create the initial provider
1510

16-
### Dependabot
11+
### Miscellaneous
1712

13+
- #1: Initial set up
1814

1915

src/.idea/.idea.Stravaig.Configuration.SqlServer/.idea/sqldialects.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Example/Example.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<TargetFramework>net6.0</TargetFramework>
66
<Nullable>enable</Nullable>
77
<UserSecretsId>7f191ac2-a110-4f9d-989f-0c4afa1d9e45</UserSecretsId>
8+
<IsPackable>false</IsPackable>
89
</PropertyGroup>
910

1011
<ItemGroup>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
BEGIN TRANSACTION
2+
3+
INSERT INTO Stravaig.AppConfiguration(ConfigKey, ConfigValue)
4+
VALUES('MyConfiguration:SomeString', 'A value from the database.');
5+
6+
INSERT INTO Stravaig.AppConfiguration(ConfigKey, ConfigValue)
7+
VALUES('MyConfiguration:SomeNumber', '1234');
8+
9+
INSERT INTO Stravaig.AppConfiguration(ConfigKey, ConfigValue)
10+
VALUES('FeatureManager:FeatureC', 'true');
11+
12+
COMMIT TRANSACTION

src/SQL Scripts/UpdateConfigurationValues.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WHERE ConfigKey = 'MyConfiguration:SomeString'
66

77

88
UPDATE Stravaig.AppConfiguration
9-
SET ConfigValue = 'true'
9+
SET ConfigValue = 'false'
1010
WHERE ConfigKey = 'FeatureManager:FeatureC'
1111

1212
COMMIT TRANSACTION

0 commit comments

Comments
 (0)