-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
Feature suggestion: BulkInsertOrUpdateOrDelete expression filter #424
Comments
this too helpful to check removed data from source in specific parameter (sources that have limitation) i use this way but there some data from another sources will lost GetQuerable().Where(x => x.commonProperty == commonProperty).BatchDeleteAsync();
BulkInsertOrUpdate(hugeData, b => b.PropertiesToExclude = new List<string> { "anotherSourceData" });
|
Partial sync is now possible with extended Config.
|
Could you leave some pseudocode as to how you'd map my proposed syntax (i.e. |
You are right, new feature can filter columns, not rows. |
I was thinking you could use the expression filter to build a CTE and filter on that CTE. |
I'll take a look when I find the time, meanwhile if you think you could make a PR send one. |
The "BulkInsertOrUpdateOrDelete" method would be even more powerful if you could use it to synchronize just part of a table:
The
mergePredicate
could then be used to build a CTE for the merge target.(The discussion at linq2db/linq2db#1166 has bearing on this.)
The text was updated successfully, but these errors were encountered: