VOOZH about

URL: https://www.nuget.org/packages/EFCommenter

⇱ NuGet Gallery | EFCommenter 1.0.6




👁 Image
EFCommenter 1.0.6

dotnet add package EFCommenter --version 1.0.6
 
 
NuGet\Install-Package EFCommenter -Version 1.0.6
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EFCommenter" Version="1.0.6" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EFCommenter" Version="1.0.6" />
 
Directory.Packages.props
<PackageReference Include="EFCommenter" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EFCommenter --version 1.0.6
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EFCommenter, 1.0.6"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EFCommenter@1.0.6
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EFCommenter&version=1.0.6
 
Install as a Cake Addin
#tool nuget:?package=EFCommenter&version=1.0.6
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EFCommenter

👁 NuGet
👁 NuGet

All summaries of entities, properties, and enums will be added as comments on the corresponding database tables and columns.


Features

  • Automatically adds table comments from entity class summaries.
  • Adds column comments from property summaries.
  • Supports enum types as column comments.
  • Works with SQL Server and PostgreSQL.
  • Easy to integrate into your EF Core project using a single extension method.

Installation

dotnet add package EFCommenter

Usage

Enable XML documentation in your project by adding this to your .csproj:

<PropertyGroup>
 <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Then, call the extension method in your DbContext:

using EFCommenter;
using Microsoft.EntityFrameworkCore;

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
 modelBuilder.AddEntitiesComments();
}

Example

Your entities and enums include some comments.

/// <summary>
/// The class declered a person!!!
/// </summary>
public class Person
{
 public int Id { get; set; }

 /// <summary>
 /// The full name of the person!!!
 /// </summary>
 public string Name { get; set; } = "";

 public PersonType Type { get; set; }
}

public enum PersonType
{
 Admin,
 User,
 Guest
}

In the migration adding, the summaries will be automatically added as table and column comments in the created migration file, and they are ready to update the database comments.

migrationBuilder.CreateTable(
 name: "People",
 columns: table => new
 {
 Id = table.Column<int>(type: "int", nullable: false)
 .Annotation("SqlServer:Identity", "1, 1"),
 Name = table.Column<string>(type: "nvarchar(max)", nullable: false, comment: "The full name of the person!!!"),
 Type = table.Column<int>(type: "int", nullable: false, comment: "0: Admin | \n1: User | \n2: Guest | ")
 },
 constraints: table =>
 {
 table.PrimaryKey("PK_People", x => x.Id);
 },
 comment: "The class declered a person!!!");

Notes

  • Make sure your EF Core project targets .NET 8 or later.
  • XML documentation file must be enabled for the summaries to be read.
  • Tested with PostgreSQL and SQL Server.
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 1,278 12/2/2025
1.0.5 609 12/1/2025
1.0.4 605 12/1/2025
1.0.3 150 11/1/2025
1.0.2 151 11/1/2025
1.0.1 208 10/19/2025
1.0.0 156 10/18/2025

Initial release with core features.