Skip to content

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

v2.29.0

08 Mar 15:58

Choose a tag to compare

  • VS 2017 is now supported
  • #132 HierarchyId in stored procs - wrong namespace. Thanks to m1dst and special thanks to L1tR05 for fixing it.
  • #206 GetCurrentProject bug - was returning the SELECTED project, now will try first the project that hosts the T4 template. Thanks to Richard Drizin.
  • #210 Ability to setup a suffix for the generated entity classes. Thanks to Adrian Iftode.
  • #212 Add Default Support for datetime2. Checks for getdate(), sysdatetime, getutcdate() and, sysutcdatetime and sets the default value with System.DateTime.Now or System.DateTime.UtcNow. Thanks to Chris3773.
  • #213 Wrong casing in switch statement. Thanks to EricEJ.
  • #216 Func ForeignKeyName now receives Relationship, so that it knows if this a one-to-many (PK table pointing to FK table) or a many-to-one (FK table pointing to PK table), and can use that information to derive the relationship names (both ways) from the constraint name. Thanks to Richard Drizin.
  • #215 New configuration UsePropertyInitializers, which initializes Defaults and Collections using property initializers (C# 6.0), and removes the entities public constructors. This allows someone to create their own constructors in partial classes, which can be used to enforce passing mandatory arguments, setting private constructors, etc. Thanks to Richard Drizin.
  • #219 Bug fix: CalcRelationship & CalcRelationshipSingle should return the relationship between a child table and it's parent table - so it can only be One-to-One or Many-To-One. Thanks to Richard Drizin.
  • #218 Minor XMLDOC adjustments. Thanks to Richard Drizin.
    • Navigation properties and reverse navigation properties now include XML DOC that shows the exact name of the columns which are used in the relationship. AddReverseNavigation - new arguments (List and Table mappingTable) to add comments showing column names and constraint name.
    • Instead of "Product children", will show "Child Products".
    • Consistent formatting. For single-column primary keys will show "[Tablename].[Column]". For composite keys will show "[TableName].([Column1], [Column2])".
    • Fixed the ForeignKeyName Func (missing relationship parameter)

v2.28.0

24 Jan 11:30

Choose a tag to compare

  • #187 #188 Apply the "override" access modifier to a column. The override modifier is required to extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event. Thanks to Pastor Quintero.
  • #189 #190 Setting the DbContextInterfaceName to an empty string "" will cause the generator to not create or use the interface. Thanks to Pastor Quintero.
  • Automated setting of TargetFrameworkVersion. No longer do you need to set the target framework version, which is used to determine if the generator should create Async methods for you. This is automatically detected now.
  • #196 Support C# 5 language for FakeDatabaseContext. Thanks to Ralph Mack.
  • #198 Pass in the StoredProcedure class to StoredProcedureRename instead of the name. Thanks to ichalyshev.

v2.27.0

05 Jan 16:59

Choose a tag to compare

  • #167 Fix for primary keys with hidden base class columns. Thanks to EricVB
  • #160 Allow specifying ConnectionString directly in config. Thanks to innominate227.
  • #174 Improve OOB experience when no relevan connection string name exists (avoid "build" errors or warnings). Thanks to ErikEJ.
  • #179 [SQLCE] MaxLength issues if > 4000. Thanks to ErikEJ.

v2.26.0

16 Dec 14:32

Choose a tag to compare

  • #168 Added StoredProcedureFilter lambda functionality similar to TableFilter. Thanks to Shakya Jones.
  • #109 Add ability to rename foreign keys. Thanks to Pawel Hofman.
  • Removed old codeplex "more information" URL to point to GitHub

v2.25.0 [DataAnnotations]

28 Nov 23:59

Choose a tag to compare

  • [DataAnnotation] support is finally here!
  • #99 Dbcontext inherits from interface defined in DbContextInterfaceName. Thanks to Shane Milton.
  • #106 Added option to rename stored procedure return models. Thanks to Pawel Hofman.
  • #115 Added DbContext methods to interface. Thanks to David Yardy.
  • #118 Add Static Partial Method to Context. Thanks to Ryan Posener.
  • #122 Bug fix: "NULL"able default value. Thanks to rhammonds.
  • Include extra functions in the fake db context.
  • #127 Rename settings flag UseCamelCase to UsePascalCase. Thanks to Rob Jentzema.
  • #128 StaticPartial needs to be wrapped in a conditional or breaks template. Thanks to Rob Jentzema.
  • #129 Include precision and scale if either are set. Thanks to NaomiN.
  • Add comments for help when using JsonIgnore. Thanks to Wizaerd.
  • Exclude sysdiagram* tables. Thanks to Craig Lyall.
  • Check schema when excluding stored procedures using the regex.
  • Limit HasPrecision to decimal types.
  • #139 Added new switch and overridable CodeGeneratedAttribute. Thanks to Rob Jentzema.
  • Stored procedure output parameter values were not set in stored procedures with multiple result sets. Thanks to samartzidis.
  • #101 TransactionalBehavior.DoNotEnsureTransaction in Database.ExecuteSqlCommand(). Thanks to iworldpark.
  • #145 Added async for connection opening. Thanks to andygjp.
  • #149 Optionally exclude reverse navigation properties. New property on ForeignKey "IncludeReverseNavigation" which controls whether the generated POCO class includes a reverse navigation
    property for the foreign key. This property can be set in the ForeignKeyFilter delegate, giving the user control over which reverse navigation properties are generated. Thanks to Rob Lugt.

v2.24.0

18 Aug 12:20

Choose a tag to compare

  • Add .ConfigureAwait(false) to awaited tasks. Thanks to Erich Brunner.
  • #69 Configure which entity configurations are added to a model. Thanks to Andygjp.
  • #92 Fixed stored procedure parameter size if using nvarchar(max). Thanks to WisdomGuidedByExperience.
  • #93 varchar(MAX) / nvarchar(MAX) is generated wrong type in POCO.cs file. Thanks to TadeuszSobol
  • #91 Return model not generated for User-Defined Table Type. Thanks to Igormono.
  • Moved stored procedures callbacks out of settings tt file.

v2.23.0

11 Aug 09:34

Choose a tag to compare

  • #77 Remove unicode prefix from unicode column default values. Thanks to Tim Sirmovics.
  • #78 Cast default values for column mapped to an enum. Thanks to DDtMM.
  • #83 Make stored procedure exclusion filters work in a similar way to table exclusion filters. Thanks to ErikEJ.
  • #87 Add RemoveAll() function to Fake class. Thanks to rajjan.
  • #88 Fix bug where there are two foreign keys with the same name in different schemas. Thanks to Harish.

v2.22.1

21 Jul 09:47

Choose a tag to compare

  • #75 Cross-Database Synonym Support. Thanks to Eric Small. Great effort and much appreciated!
  • Use the more efficient ToTable call so the schema does not have to be parsed out.

v2.22.0

19 Jul 10:15

Choose a tag to compare

  • #67 Computed columns cannot be queried in ODATA when the setter is private if using a $select filter. Make private setters for computed columns optional. Thanks to rsmaloney and andygjp
  • #68 Add support for Synonym tables. See new option IncludeSynonyms. Thanks to TimSirmovics.
  • Use invariant culture for enum string comparison.

v2.21.1

27 Jun 12:10

Choose a tag to compare

#61 Bug fix for regions. Thanks to mhwlng.