Skip to content

v2.29.0

Choose a tag to compare

@sjh37 sjh37 released this 08 Mar 15:58
· 851 commits to master since this release
  • 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)