Repository navigation
Separate FromSql methods into 2 methods - #15018
Merged
Merged
Conversation
smitpatel
commented
Mar 13, 2019
smitpatel
force-pushed
the
smit/FromSql10996
branch
from
March 13, 2019 20:24
c2541af to
3a46712
Compare
ajcvickers
reviewed
Mar 13, 2019
ajcvickers
reviewed
Mar 13, 2019
ajcvickers
reviewed
Mar 13, 2019
ajcvickers
approved these changes
Mar 13, 2019
smitpatel
force-pushed
the
smit/FromSql10996
branch
from
March 13, 2019 22:24
3a46712 to
38943b8
Compare
divega
approved these changes
Mar 13, 2019
divega
left a comment
Contributor
There was a problem hiding this comment.
I think I am done with the Obsolete messages and reviewing the XML docs. Just in case there are concerns with them, this is my reasoning:
Given that the goal of the change is to address confusion, customers that hit the obsolete warning may already be using the wrong overload. Then we want to present the decision point every time, so that they can pick the right method depending on what they want/expect from the API.
Let me know what you think.
divega
reviewed
Mar 13, 2019
| /// <returns> | ||
| /// A task that represents the asynchronous operation. The task result is the number of rows affected. | ||
| /// </returns> | ||
| public static Task<int> ExecuteRawSqlAsync( |
Contributor
There was a problem hiding this comment.
I will create a new issue about using ValueTask on our APIs.
Contributor
There was a problem hiding this comment.
If we need more methods (for more return types) how are we going to name them?! ![]()
smitpatel
force-pushed
the
smit/FromSql10996
branch
from
March 13, 2019 23:17
38943b8 to
74e4485
Compare
Resolves #10996 New methods: FromRawSql/ExecuteRawSql(Async) - works with string, parameters FromInterpolatedSql/ExecuteInterpolatedSql(Async) - works with FormattableString Deprecated old methods & RawSqlString
smitpatel
force-pushed
the
smit/FromSql10996
branch
from
March 13, 2019 23:20
74e4485 to
4d27394
Compare
Contributor
|
Good messages! :-) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #10996
New methods:
FromRawSql/ExecuteRawSql(Async) - works with string, parameters
FromInterpolatedSql/ExecuteInterpolatedSql(Async) - works with FormattableString
Deprecated old methods & RawSqlString