Skip to content

SqlParameter - behaviour of Scale property for datetime2 parameters #2604

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

Merged
merged 3 commits into from
Oct 25, 2019

Conversation

alansingfield
Copy link
Contributor

Summary

Added note about setting scale on datetime2, datetimeoffset and time parameters. It is not possible to set the scale to 0 as this gets changed to 7 internally.

https://developercommunity.visualstudio.com/content/problem/161757/cannot-specify-scale-of-zero-for-time-datetime2-or.html

Describe your changes here.

Fixes #Issue_Number (if available)

Added note about setting scale on datetime2, datetimeoffset and time parameters. It is not possible to set the scale to 0 as this gets changed to 7 internally.
@alansingfield alansingfield changed the title Update SqlParameter.xml SqlParameter - behaviour of Scale property for datetime2 parameters Jun 16, 2019
@mairaw
Copy link
Contributor

mairaw commented Jun 20, 2019

Thanks @alansingfield for your PR. @afsanehr, @Gary-Zh , @David-Engel can one of you help review these changes to the System.Data.SqlClient.SqlParameter.Scale API?

The staging link would be https://review.docs.microsoft.com/en-us/dotnet/api/System.Data.SqlClient.SqlParameter.Scale?branch=pr-en-us-2604&view=netframework-4.8#remarks.

@mairaw mairaw added the ✨ 1st-time dotnet-api-docs contributor! Indicates PRs from new contributors to the dotnet-api-docs repository label Jun 20, 2019
@mairaw mairaw added this to the June 2019 milestone Jun 20, 2019
@mairaw
Copy link
Contributor

mairaw commented Sep 10, 2019

@cheenamalhotra you're now listed as an owner of System.Data.SqlClient. Can you please review this PR for SqlParameter.Scale?

Copy link
Contributor

@David-Engel David-Engel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks accurate to me.

Copy link
Contributor

@mairaw mairaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review @David-Engel. @alansingfield I have a couple of suggestions for you to consider. Thanks!

@tdykstra
Copy link
Contributor

@mairaw Your review suggestions were implemented with the exception of the future tense to present tense suggestion -- is this OK to merge?

@mairaw
Copy link
Contributor

mairaw commented Oct 25, 2019

Yes, thanks for checking @tdykstra. I tagged this on hold so I can push the SDP migration live first.

@mairaw mairaw merged commit bcc269a into dotnet:master Oct 25, 2019
@alansingfield alansingfield deleted the patch-1 branch October 28, 2019 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ 1st-time dotnet-api-docs contributor! Indicates PRs from new contributors to the dotnet-api-docs repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants