# EntityFrameworkCore.Comment **Repository Path**: atalent/EntityFrameworkCore.Comment ## Basic Information - **Project Name**: EntityFrameworkCore.Comment - **Description**: No description available - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EntityFrameworkCore.Comment ### Usage example: ##### DbContext: ```c# using EntityFrameworkCore.Comment; using Microsoft.EntityFrameworkCore; namespace Test.DbContext { public class School : Microsoft.EntityFrameworkCore.DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseMySql("server=localhost;user=root;pwd=123456;database=test"); } [Comment("Comment of Teachers")] public DbSet Teachers { get; set; } [Comment("Comment of Students")] public DbSet Students { get; set; } } } ``` ##### Entity: ```c# using EntityFrameworkCore.Comment; using System; namespace Test.DbContext { public class Student { [Comment("Comment of Id")] public string Id { get; set; } = Guid.NewGuid().ToString(); [Comment("Comment of Name")] public string Name { get; set; } [Comment("Comment of Age")] public int Age { get; set; } } } ``` ##### Program: ```c# using EntityFrameworkCore.Comment; using System; using Test.DbContext; namespace Test.ConsoleApp { class Program { static void Main(string[] args) { var school = new School(); school.AddDatabaseComments(); Console.WriteLine("Hello World!"); } } } ``` ### Only MySql impled,impl others by yourself! https://gitee.com/atalent/EntityFrameworkCore.Comment.git