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
**Primitively** is a Rosyln-powered C# source code generator of strongly-typed IDs and DDD-style value objects that encapsulate a single GUID, integer, date or string .NET *primitively* typed value.
5
+
**Primitively** is a Rosyln-powered C# source code generator of strongly-typed IDs and DDD-style value objects encapsulating a single GUID, integer, date or string .NET *primitively* typed value.
6
6
7
7
For example: -
8
8
@@ -26,14 +26,14 @@ public partial record struct Sku;
26
26
|:--|:--|:--|
27
27
|`Primitively`|[](https://www.nuget.org/packages/Primitively/"Download Primitively from NuGet.org")| The Primitively source generator package. |
28
28
|`Primitively.Abstractions`|[](https://www.nuget.org/packages/Primitively.Abstractions/"Download Primitively.Abstractions from NuGet.org")| Primitively interfaces, metadata, attributes and configuration classes. |
29
-
|`Primitively.AspNetCore.Mvc`|[](https://www.nuget.org/packages/Primitively.AspNetCore.Mvc/"Download Primitively.AspNetCore.Mvc from NuGet.org")| ASP.NET MVC model binding support for Primitively types used in route and querystring parameters. |
30
-
|`Primitively.AspNetCore.SwaggerGen`|[](https://www.nuget.org/packages/Primitively.AspNetCore.SwaggerGen/"Download Primitively.AspNetCore.SwaggerGen from NuGet.org")| Swagger Open API schema support for Primitively types using Swashbuckle. |
29
+
|`Primitively.AspNetCore.Mvc`|[](https://www.nuget.org/packages/Primitively.AspNetCore.Mvc/"Download Primitively.AspNetCore.Mvc from NuGet.org")| ASP.NET MVC model binding support for Primitively types used in route and query string parameters. |
30
+
|`Primitively.AspNetCore.SwaggerGen`|[](https://www.nuget.org/packages/Primitively.AspNetCore.SwaggerGen/"Download Primitively.AspNetCore.SwaggerGen from NuGet.org")| Swagger Open API schema support is available for Primitively types using Swashbuckle. |
31
31
|`Primitively.FluentValidation`|[](https://www.nuget.org/packages/Primitively.FluentValidation/"Download Primitively.FluentValidation from NuGet.org")| FluentValidation support for Primitively types. |
32
32
|`Primitively.MongoDB.Bson`|[](https://www.nuget.org/packages/Primitively.MongoDB.Bson/"Download Primitively.MongoDB.Bson from NuGet.org")| BSON serialization for Primitively types stored in MongoDB. |
33
33
34
34
## Documentation
35
35
36
-
This README is designed get you started generating your own strongly-typed identifiers with just a few lines of code.
36
+
This README is designed to help you generate your own stronglytyped identifiers with just a few lines of code.
37
37
38
38
For more detailed information about Primitively, check out [primitively.net][primitively-website].
39
39
@@ -47,7 +47,7 @@ dotnet add package Primitively
47
47
48
48
Open your csproj file and edit the package reference, setting `PrivateAssets="All"`. The file will look something like this afterwards:
49
49
50
-
```xml
50
+
```XML
51
51
<ProjectSdk="Microsoft.NET.Sdk">
52
52
53
53
<PropertyGroup>
@@ -63,13 +63,13 @@ Open your csproj file and edit the package reference, setting `PrivateAssets="Al
63
63
</Project>
64
64
```
65
65
66
-
You are now ready to create your first Primitively sourcegenerated type!
66
+
You are now ready to create your first Primitively source-generated type!
67
67
68
68
Create a new class file and add a reference to Primitively and decorate your `partial record struct` with one of the Primitively attributes such as `[Guid]`.
Here's an example of the DI setup for a C# ASP.NET web api project that references a class library containing Primitively source generated types and is generating **swagger** documentation.
129
+
Here's an example of the DI setup for a C# ASP.NET web API project that references a class library containing Primitively source generated types and is generating **swagger** documentation.
0 commit comments