Skip to content
jeremyknight-mePublic

About

A utility library containing boilerplate code, extension methods, new classes, and/or improvements to existing classes.

Topics

Resources

Code of conduct

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

262 Commits

Folders and files

Repository files navigation

JK.Common Code Library

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.

buy me a coffee button GitHub last commit Contributor Covenant

Library (Link = Changelog) CI Download
JK.Common JK.Common CI Nuget
JK.Common.Data.Sql JK.Common.Data.SQL CI Nuget
JK.Common.Data.Sql.BulkInsert Common.Data.Sql.BulkInsert CI Nuget
JK.Common.EntityFrameworkCore JK.Common.EFCore CI Nuget
JK.Common.EntityFrameworkCore.SqlServer JK.Common.EFCore.SqlServer CI Nuget
JK.Common.FluentValidation Common.FluentValidation CI Nuget
JK.Common.Polyfills Common.Polyfills CI Nuget

Packages & Features

  • 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 SqlBulkCopy operation 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 SqlBulkCopy helper classes at compile time. Usage & docs: src/Common.Data.Sql.BulkInsert/README.md
  • JK.Common.EntityFrameworkCore: ReadOnlyDbContext, AuditableEntity with 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, and TimeConverter were removed — prefer UnitsNet for unit conversions.
  • JK.Common.OpenXml removed — prefer ClosedXML.
  • SqlBulkInsertOperation in JK.Common.Data.Sql is obsolete — prefer JK.Common.Data.Sql.BulkInsert.

Contributing

  • Follow the .editorconfig rules in src/.editorconfig.
  • Create feature branches from main and open a PR with a descriptive summary.
  • Add unit tests for new behavior; run dotnet test locally.
  • CI runs on PRs; ensure checks pass before merging.
  • For release/versioning: update package versions and changelogs in the package folders.

License & Code of Conduct

  • Code of Conduct: CODE_OF_CONDUCT.md
  • License: See LICENSE in repository root.

Release Notes & Changelog

Each package has its own changelog; see the links in the table above.

About

A utility library containing boilerplate code, extension methods, new classes, and/or improvements to existing classes.

Topics

Resources

Code of conduct

Stars

6 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages