Skip to content

Releases: sjh37/EntityFramework-Reverse-POCO-Code-First-Generator

v2.21.1

Choose a tag to compare

@sjh37 sjh37 released this 27 Jun 12:10

#61 Bug fix for regions. Thanks to mhwlng.

v2.21.0

Choose a tag to compare

@sjh37 sjh37 released this 24 Jun 15:22
  • Add support for .IsConcurrencyToken()
  • #59 ObjectParameter null string values. Thanks to TimSirmovics
  • Added an example of adding a [Required] data annotation attribute to all non-null fields
  • #58 Comment out custom pluralisation samples. Thanks to TimSirmovics
  • Add new callback function TableFilter to allow filtering of tables using a function.
  • #61 Use #region around generated elements.
  • Pluralise/singularise just the last word.
  • Added support for snake-case.

v2.20.2

Choose a tag to compare

@sjh37 sjh37 released this 17 Jun 13:47
  • #55 Retest exclusion filter after table rename, not the inclusion filter. Thanks to TimSirmovics.
  • #53 Handle tables with ALLCAPS for proper singular/plural forms
  • #57 Fix for missing System.Linq namespace when generating separate files.
  • Use a private setter for computed columns.

v2.20.1

Choose a tag to compare

@sjh37 sjh37 released this 14 Jun 09:59
  • Turkish i->İ character problem fix. Thanks to lothlarias.
  • Fix FakeDbContext not implemnted with AdditionalContextInterfaceItems. Thanks to 楊明勳 Ming.
  • Included documentation about removing primary keys from poco if using a base class with PK property. Thanks to Erik.
  • Allow debugging of T4 templates. Thanks to Bitfiddler.
  • Handle filter inclusion and exclusion better.
  • Handle tables with ALLCAPS. Thanks to BitFiddler.
  • Updated License to make it clear that this tool is not to be wrapped inside another tool.

v2.20.0

Choose a tag to compare

@sjh37 sjh37 released this 02 Jun 12:35

Add callback function to name the foreign key to be used.
See ForeignKeyName in your .tt file.

v2.19.4

Choose a tag to compare

@sjh37 sjh37 released this 01 Jun 12:50
  • Issue #46 Add Async support for stored procedures. Thanks to Paul Irwin.
  • Invert use of WillCascadeOnDelete. Thanks to Sobolowie.

v2.19.3

Choose a tag to compare

@sjh37 sjh37 released this 23 May 11:18
  • Issue #16. If desired, column comments are scripted as XML documentation. Thanks to ErikEJ.
  • Issue #42. Move ConnectionString to top of settings. Thanks to ErikEJ.
  • Issue #39. Support foreign keys with "ON DELETE CASCADE". Makes use of .WillCascadeOnDelete().
  • Issue #38. Cleanup whitespace in generated output. Thanks to PatrickMcDonald.
  • Issue #33. Shorten GeneratedCodeAttribute to GeneratedCode. Thanks to ErikEJ.

v2.19.2

Choose a tag to compare

@sjh37 sjh37 released this 17 Apr 17:43
  • Support for timestamp (rowversion) with SQLCE. Thanks to ErikEj.
  • Allow DbContextInterfaceName to be partial. Thanks to Joe Friel.
  • Case 31. Escape backslash characters in column names. Thanks to ErikEj.

v2.19.1

Choose a tag to compare

@sjh37 sjh37 released this 23 Mar 21:01
  • Moved WriteStoredProcFunctionName callback into the experienced developer section.
  • Include the namespace for the DbMigrationsConfiguration
  • Make the DbMigrationsConfiguration class internal sealed
  • Include namespace for the MigrationStrategy
  • All classes are decorated with CodeGeneratedAttribute. Thanks to Andrew Pattison.
  • Include Hidden column in the exclusion list for detecting mapping columns. This means that the use of ColumnFilterExclude can be used to hide columns from the mapping table detection function.
  • Fixed bug. Needed to check stored procedure schema.name, not just name. This bug appears when there are two identically named stored procedures, sitting in two schemas.
  • Default to NullableShortHand = true
  • Added example of removing table names from primary keys. e.g. CustomerId to Id
  • #21. Updated the comment for IncludeTableValuedFunctions as IncludeStoredProcedures also needs to be set to true. Thanks to davidsk
  • #22 Run the exclusion/inclusion regex's before the checking for table name clashes. Thanks to davidsk.

v2.19.0

Choose a tag to compare

@sjh37 sjh37 released this 16 Mar 18:19

What's new in this release:

  • Include length of fields in comments. Thanks to Matt Slay.
  • #1 Show tables in comments that are ignored due to not having a primary key. Thanks to beernutz.
  • #12 Include extra constructors which include the contextOwnsConnection flag in the db context. Thanks to ErikEJ.
  • #4 Change primary keys with ROWGUIDCOL to be identity columns and not computed. Thanks to yyjdelete.
  • #7 Customize interface name. Thanks to blyry.
  • #8 Ability to override the default context constructor argument. Thanks to blyry.
  • #10 Add configuration to switch between Nullable and T?. Thanks to blyry.

Notes

There are new constructors implemented in the database context, which you will need to implement if you have your own implementation.