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

有没一条语句同时Insert or Update? #115

Closed
LuciusLu opened this issue Oct 18, 2019 · 5 comments
Closed

有没一条语句同时Insert or Update? #115

LuciusLu opened this issue Oct 18, 2019 · 5 comments

Comments

@LuciusLu
Copy link

即存在时调用更新,不存在时插入。

@LuciusLu
Copy link
Author

最好能支持批量的操作。

@2881099
Copy link
Collaborator

2881099 commented Oct 18, 2019

有的在 FreeSql.Repository 库中定义的,文档 https://github.com/2881099/FreeSql/wiki/Repository

通用仓储可以做 crud 操作。

@2881099
Copy link
Collaborator

2881099 commented Oct 18, 2019

仓储类除了🈶️ crud ,还实现了InsertOrUpdate方法。

和重要的状态跟踪,更新时只更新变化的属性。

@2881099
Copy link
Collaborator

2881099 commented Oct 18, 2019

@LuciusLu
Copy link
Author

嗯,好,谢谢

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

2 participants