Created
November 20, 2018 10:38
-
-
Save DmitrySikorsky/e9e92e9c98fb49119e2e141afe683516 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void Merge(int parentItemId, IEnumerable<ChildItem> childItems) | |
| { | |
| using (IDbConnection db = this.CreateDbConnection()) | |
| db.Execute( | |
| "UpdateChildItems", | |
| new { ParentItemId = parentItemId, ChildItems = childItems.ToDataTable("ParentItem") }, | |
| commandType: CommandType.StoredProcedure | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment