Skip to content

Latest commit

 

History

History

README.md

CodegenCS is a Toolkit for doing Code Generation using plain C#.

Before anything else, don't forget to read read the Main Project Page to learn the basics (basic idea, basic features, and major components).

This page is only about CodegenCS Sample Templates based on DatabaseSchema:

Generates one POCO for each table.

  • Can add attributes like [Table], [Key], [DatabaseGenerated]
  • Can override Equals() and GetHashCode()
  • Can generate all POCOs in a single file or each POCO in its own file

Same as SimplePocos, but will also generate CRUD static extension methods (Insert/Update) using Dapper.

Same as SimplePocos, but will also generate a Data Access Layer class with CRUD methods (Insert/Update) using Dapper.

Same as SimplePocos, but will also generate CRUD using Active Record pattern (Insert/Update methods inside the POCO) using Dapper.