You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Say goodbye to magic strings and runtime errors. With SetSharp, your configurati
10
10
11
11
## Key Features
12
12
13
-
-**Automatic POCO Generation:** Mirrors your `appsettings.json` structure into clean, ready-to-use C# classes.
13
+
-**Automatic POCO Generation:** Mirrors your `appsettings.json` structure into clean, ready-to-use C# records.
14
14
-**Strongly-Typed Access:** No more `_configuration["Section:Key"]`. Access settings with `options.Value.Section.Key`.
15
15
-**Seamless DI Integration:** Automatically generates extension methods to register your configuration with Dependency Injection using the `IOptions` pattern.
16
16
-**Zero Runtime Overhead:** All code generation happens at compile time, adding no performance cost to your application.
@@ -52,17 +52,17 @@ For the source generator to work its magic, you must explicitly tell the compile
52
52
53
53
### 3. Build Your Project
54
54
55
-
That's it! Simply build your project. SetSharp will run automatically, generating your configuration classes in the background.
55
+
That's it! Simply build your project. SetSharp will run automatically, generating your configuration records in the background.
56
56
57
57
```bash
58
58
dotnet build
59
59
```
60
60
61
61
## How to Use
62
62
63
-
SetSharp generates two key things for you: strongly-typed classes and Dependency Injection extension methods.
63
+
SetSharp generates two key things for you: strongly-typed records and Dependency Injection extension methods.
64
64
65
-
### 1. Generated Configuration Classes
65
+
### 1. Generated Configuration Records
66
66
67
67
For an `appsettings.json` like this:
68
68
@@ -77,34 +77,34 @@ For an `appsettings.json` like this:
77
77
}
78
78
```
79
79
80
-
SetSharp will generate corresponding C# classes, typically within the `SetSharp.Configuration` namespace:
80
+
SetSharp will generate corresponding C# records, within the `SetSharp.Configuration` namespace:
0 commit comments