You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to ErikEJ/EFCorePowerTools#1688 i should raise this issue here. When using the EFCorePowerTools the scaffolding does not detect/pick-up a trigger resulting in the absence of HasTrigger when creating the model.
Versions:
EF Core version in use: EF Core 7.0.2
Is Handlebars used: yes
Is T4 used: no
Is .dacpac used: no
EF Core Power Tools version: 2.5.1277
Database engine: SQL Server
Visual Studio version: Visual Studio 2022
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET 6.0)
Don't think this is a duplicate, as to me it is a bug to an existing scaffolding feature, the linked issue is about adding a feature to migration. imho they might be related, but not a duplicate.
@lsiepel I am not able to reproduce this. With that schema, I get the following model configuration. It includes HasTrigger calls for both triggers in the model. Can you post the complete command line you are using, the verbose output from running the tool, and the generated configuration code?
EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.
Activity
roji commentedon Feb 10, 2023
Duplicate of #10770
roji commentedon Feb 10, 2023
Although EF has infrastructure for managing triggers, it doesn't yet actually support them for SQL Server/SQLite. #10770 tracks that.
ErikEJ commentedon Feb 10, 2023
@roji this is about reverse engineering, not migrations
roji commentedon Feb 10, 2023
Sure, but i think we'd do both in the same work item, that's pretty standard. But no objection to track separately.
ErikEJ commentedon Feb 10, 2023
But scaffolding already attempts to Detect triggers AFAIK.
So I think this an edge case of side effects from a trigger.
lsiepel commentedon Feb 14, 2023
Don't think this is a duplicate, as to me it is a bug to an existing scaffolding feature, the linked issue is about adding a feature to migration. imho they might be related, but not a duplicate.
ajcvickers commentedon Feb 16, 2023
@lsiepel I am not able to reproduce this. With that schema, I get the following model configuration. It includes
HasTriggercalls for both triggers in the model. Can you post the complete command line you are using, the verbose output from running the tool, and the generated configuration code?ajcvickers commentedon Mar 8, 2023
EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.