Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

需求:希望新增使用 CodeFirst的SyncStructure 可以强制建表的功能 #412

Closed
exy3351 opened this issue Aug 12, 2020 · 0 comments

Comments

@exy3351
Copy link

exy3351 commented Aug 12, 2020

同步表后,再直接执行 SQL 语句 DROP TABLE 删除表,然后在同步表,此时表不会再同步。
相同问题参考: #345
在这个里面提到的两个方案使用都不太方便

  1. 新建临时 IFreeSql 执行,SyncStructure,用完释放 IfreeSql
    在Sqlite中有时可能会有 数据库被锁定的问题;
    2.反射控制内部变量,看上面文件 71 行那个字段,再使用 SyncStructure 迁移
    基本不会用

期望在手动调用SyncStructure 时,可以增加一个参数或方法可以强制同步,而不是检测到已同步后就不在同步了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant