-
Notifications
You must be signed in to change notification settings - Fork 861
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
FreeSql.Provider.SqlServer SeedData List集合时无法正常增加分表的种子数据 #362
Comments
问题确实存在,是 AsType 操作之后用 ExecuteInserted() 执行导致返回了字典,我处理一下 |
2881099
pushed a commit
that referenced
this issue
Jul 5, 2020
解决了 1.7.0-preview0705 |
👍好的。已安装使用没问题。 |
另一个sqlserver的问题。
生成的sql
|
多对多 select 查询不好处理,因为是一对多的关系,1.6.0 和之前的版本 使用 exists 方式处理的,所以报了这个错误。 暂时可以把 AsSelect().Count() 也兼容一下,AsSelect(). Sum/Avg/Max/Min/First/ToOne/ToList 暂时处理不了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
数据库:Sql server 2017
驱动: FreeSql.Provider.SqlServer Version="1.6.0"
我写了个demo作为参考sqlserver-seeddata-problem.zip,
此demo,他只会增加主表的Blog的二条数据。Posts(评论回复)无法增加
但如果只有一条Blog的数据时,分表的数据能正常增加
SeedData 种子数据,我试了下在MySql和Sqlite下都能正常生成种子数据,然后到了SqlServer下,就会出现如下错误
The text was updated successfully, but these errors were encountered: