Skip to content

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!

alansingfield and others added 2 commits October 7, 2019 08:00
Oxford comma!

Co-Authored-By: Maira Wenzel <mairaw@microsoft.com>
Agreed

Co-Authored-By: Maira Wenzel <mairaw@microsoft.com>
@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