TrackableEntities / EntityFrameworkCore.Scaffolding.Handlebars

Scaffold EF Core models using Handlebars templates.
MIT License
210 stars 53 forks source link

Fixed issue for Multiple Schema FK. Added back removed code that gener… #239

Closed mwmccallum closed 9 months ago

mwmccallum commented 9 months ago

Fixed issue for Multiple Schema FK. Added back removed code that generated additional annotations.

Test all pass locally after #236 correction. Northwinds Test DB does not have multiple schemas to build a test for #238 correction. However, I attached this project to my own database project that does have multiple schemas and the outstanding issue was fixed.

Closes #236 Closes #238

mwmccallum commented 9 months ago

I forgot to mention that I implemented the EF7/8 HasTrigger functionality. Created method GenerateTrigger to generate the necessary text and it is called from GenerateEntityType, just after GenerateKey.

Generates: entity.ToTable(e => e.HasTrigger ( "tr_acti_acno" ) );

Mike

tonysneed commented 9 months ago

@mwmccallum Thank you very much for the PR which fixed these issues. 😄