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: Add a method DbParameter into the QueryField object. #711

Closed
mikependon opened this issue Jan 11, 2021 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@mikependon
Copy link
Owner

Describe the enhancement

An object of type IDbDataParameter must be added as a property into the QueryField object. This property will only be set if the QueryField object has already been used in any execution.

var where = new QueryField("LastName", Operation.Like, "D%");
var result = connection.Query<Person>(where);
var parameter = where.DbParameter;

Imagine, if the QueryField is a type of DirectionalQueryField and the ParameterDirection is being set as Output/InputOuput, then, you may be able to directly get the reference into the DbParameter object. Though, you can also retrieve the value via QueryField.GetValue().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant