A collection of reusable .NET utilities and extension methods. The collection of JK.Common packages provide general-purpose helpers (string, date/time, collections), EF Core utilities, SQL bulk operations, and FluentValidation extensions to speed development of server-side services.
| Library (Link = Changelog) | CI | Download |
|---|---|---|
| JK.Common | ||
| JK.Common.Data.Sql | ||
| JK.Common.Data.Sql.BulkInsert | ||
| JK.Common.EntityFrameworkCore | ||
| JK.Common.EntityFrameworkCore.SqlServer | ||
| JK.Common.FluentValidation | ||
| JK.Common.Polyfills |
- JK.Common: Helpers for
string,DateTime,IQueryable,IEnumerable, deep cloning (DeepCloner), template processing utilities, and small geospatial types (latitude/longitude). Usage & docs: src/Common/README.md - JK.Common.Data.Sql: Generic
SqlBulkCopyoperation and helpers for bulk insertion. Usage & docs: src/Common.Data.Sql/README.md - JK.Common.Data.Sql.BulkInsert: A Roslyn source generator that creates type-safe
SqlBulkCopyhelper classes at compile time. Usage & docs: src/Common.Data.Sql.BulkInsert/README.md - JK.Common.EntityFrameworkCore:
ReadOnlyDbContext,AuditableEntitywith automatic audit property updates via SaveChanges interceptors. Usage & docs: src/Common.EntityFrameworkCore/README.md - JK.Common.EntityFrameworkCore.SqlServer:
PropertyBuilderExtensions(HasColumnTypeDateTime,HasColumnTypeNvarchar, etc.) to simplify EF Core mappings. Usage & docs: src/Common.EntityFrameworkCore.SqlServer/README.md - JK.Common.FluentValidation: Common validators (address, email, etc.) to reuse across services. Usage & docs: src/Common.FluentValidation/README.md
- JK.Common.Polyfills: A Roslyn source generator that emits polyfill types for missing language features on older target frameworks. Usage & docs: src/Common.Polyfills/README.md
Notes:
DistanceConverter,TemperatureConverter, andTimeConverterwere removed — preferUnitsNetfor unit conversions.JK.Common.OpenXmlremoved — preferClosedXML.SqlBulkInsertOperationin JK.Common.Data.Sql is obsolete — prefer JK.Common.Data.Sql.BulkInsert.
- Follow the
.editorconfigrules insrc/.editorconfig. - Create feature branches from
mainand open a PR with a descriptive summary. - Add unit tests for new behavior; run
dotnet testlocally. - CI runs on PRs; ensure checks pass before merging.
- For release/versioning: update package versions and changelogs in the package folders.
- Code of Conduct:
CODE_OF_CONDUCT.md - License: See
LICENSEin repository root.
Each package has its own changelog; see the links in the table above.