Skip to content

Enhancement: Refactor the Table-Based Calls to return IEnumerable<ExpandoObject> instead of IEnumerable<dynamics>. #540

Open
@mikependon

Description

@mikependon

Currently, the result set of the following methods is of type IEnumerable<dynamic>. To be more specific and direct, it is good to return the type of IEnumerable<ExpandoObject>; instead.

using (var connection = new SqlConnection(connectionString))
{
	var person = connection.QueryAll("Person");
}

In which you can as well inferred it like this.

using (var connection = new SqlConnection(connectionString))
{
	var person = connection.QueryAll<ExpandoObject>("Person");
}

Or even via IDictionary<string, object> object.

using (var connection = new SqlConnection(connectionString))
{
	var person = connection.QueryAll<IDictionary<string, object>>("Person");
}

Impact: There should be 0 impact on the existing code of the consumers.

Metadata

Metadata

Assignees

Labels

refactoringA change in code without changing the logictodoThings to be done in the futureunder assessmentThe feature request is under assessmentwontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions