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

Enhancement: Support 'ExpandoObject' in 'BulkMerge' #611

Closed
mikependon opened this issue Oct 7, 2020 · 0 comments
Closed

Enhancement: Support 'ExpandoObject' in 'BulkMerge' #611

mikependon opened this issue Oct 7, 2020 · 0 comments
Assignees
Labels
deployed Feature or bug is deployed at the current release enhancement New feature or request fixed The bug, issue, incident has been fixed. todo Things to be done in the future

Comments

@mikependon
Copy link
Owner

Code below must be supported.

using (var connection = new SqlConnection(connectionString))
{
	var list = new List<IDictionary<string, object>>();

	for (var i = 0; i < 100; i++)
	{
		/* First Record */
		var entity = new ExpandoObject() as IDictionary<string, object>();
		customer.Add("Id", (i + 1));
		customer.Add("LastUpdatedUtc", DateTime.UtcNow);
		/* Add more columns */
		list.Add(entity);
	}

	// Calls
	connection.BulkMerge("Customer", list);
}
@mikependon mikependon added enhancement New feature or request todo Things to be done in the future labels Oct 7, 2020
@mikependon mikependon self-assigned this Oct 7, 2020
mikependon added a commit that referenced this issue Oct 18, 2020
@mikependon mikependon added the fixed The bug, issue, incident has been fixed. label Oct 18, 2020
@mikependon mikependon added the deployed Feature or bug is deployed at the current release label Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed Feature or bug is deployed at the current release enhancement New feature or request fixed The bug, issue, incident has been fixed. todo Things to be done in the future
Projects
None yet
Development

No branches or pull requests

1 participant