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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
问题一:
我的表进行了主键定义的修改, 但是运行时并没有同步新的主键到表结构中. 表里还是旧的主键(测试过单一主键更换, 或者复合主键新增删除都不行). 其他修改比如字段的新增, 长度修改就有生效.
我在文档里没有找到明确的说明迁移结构是支持主键修改还是不支持, 所以来问一下.
例如:
版本: 3.2.100, .net6, MySQL8.0(FreeSql.Provider.MySql跟FreeSql.Provider.MySqlConnector都不行)
问题二:
而且当我修改主键, 且程序启动时快速调用了多次CURD时, FSql.Aop.SyncStructureAfter事件的处理方法里面打印Sql打印了两次.
注: 没有修改主键, 只修改字段长度的时候, SyncStructureAfter的sql打印就只有一次.
问题: 是否ALTER跟UPDATE语句也执行了两次?
如图,TestEntity表的结构修改触发了两次SyncStructureAfter事件:
重现代码: (net6 console)
Beta Was this translation helpful? Give feedback.
All reactions